StyleSheet

An object implementing the StyleSheet interface represents a single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface.

Properties

StyleSheet.disabled (en-US)
Is a Boolean representing whether the current stylesheet has been applied or not.
StyleSheet.href (en-US) Read only
Returns a DOMString representing the location of the stylesheet.
StyleSheet.media (en-US) Read only
Returns a MediaList (en-US) representing the intended destination medium for style information.
StyleSheet.ownerNode (en-US) Read only
Returns a Node associating this style sheet with the current document.
StyleSheet.parentStyleSheet (en-US) Read only
Returns a StyleSheet including this one, if any; returns null if there aren't any.
StyleSheet.title (en-US) Read only
Returns a DOMString representing the advisory title of the current style sheet.
StyleSheet.type (en-US)Read only
Returns a DOMString representing the style sheet language for this style sheet.

Specifications

Browser compatibility

BCD tables only load in the browser

See also