Draft:Docs/Web/API/StyleSheet
Draft article not currently submitted for review.
This is a draft Articles for creation (AfC) submission. It is not currently pending review. While there are no deadlines, abandoned drafts may be deleted after six months. To edit or make changes to this draft, simply click on the "Edit" tab at the top of the window. To be accepted, a draft should:
It is strongly discouraged to write about either yourself or your business or employer. If you do so, you must declare it. Where to get help
How to improve a draft
You can also browse Wikipedia:Featured articles and Wikipedia:Good articles to find examples of Wikipedia's best writing on topics similar to your proposed article. Improving your odds of a speedy review To improve your odds of a faster review, tag your draft with relevant WikiProject tags using the button below. This will let reviewers know a new draft has been submitted in their area of interest. For instance, if you wrote about a female astronomer, you would want to add the Biography, Astronomy, and Women scientists tags. Editor resources
Last edited by Qwerfjkl (bot) (talk | contribs) 2 days ago. (Update) |
NOTOC Template:APIRef("CSSOM") An object implementing the StyleSheet interface represents a single style sheet. CSS style sheets will further implement the more specialized Template:Domxref("CSSStyleSheet") interface. [1, 2]
Instance properties
[edit]- Template:Domxref("StyleSheet.disabled")
- A boolean value representing whether the current stylesheet has been applied or not.
- Template:Domxref("StyleSheet.href") Template:ReadOnlyInline
- Returns a string representing the location of the stylesheet.
- Template:Domxref("StyleSheet.media") Template:ReadOnlyInline
- Returns a Template:Domxref("MediaList") representing the intended destination medium for style information.
- Template:Domxref("StyleSheet.ownerNode") Template:ReadOnlyInline
- Returns a Template:Domxref("Node") associating this style sheet with the current document.
- Template:Domxref("StyleSheet.parentStyleSheet") Template:ReadOnlyInline
- Returns a StyleSheet including this one, if any; returns null if there aren't any.
- Template:Domxref("StyleSheet.title") Template:ReadOnlyInline
- Returns a string representing the advisory title of the current style sheet.
- Template:Domxref("StyleSheet.type") Template:ReadOnlyInline
- Returns a string representing the style sheet language for this style sheet. [3, 4, 5, 6, 7]
Specifications
[edit]Browser compatibility
[edit]Template:Compat [8]
See also
[edit]
[1] (https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet)
[2] (https://github.com/mdn/content/blob/main/files/en-us/web/api/stylesheet/index.md?plain=1)
[3] (https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet)
[4] (https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet)
[5] (https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet)
[6] (https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/title)
[7] (https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/type)
[8] (https://github.com/mdn/content/blob/main/files/en-us/web/api/cssstylesheet/index.md?plain=1)
