Edge Rewrite
Jump to content

Draft:Docs/Web/API/StyleSheet

From Wikipedia, the free encyclopedia

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]

Template:Specifications

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)