StyleSheet
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
An object implementing theStyleSheet interface represents a single style sheet. CSS style sheets will further implement the more specializedCSSStyleSheet interface.
In this article
Instance properties
StyleSheet.disabledA boolean value representing whether the current stylesheet has been applied or not.
StyleSheet.hrefRead onlyReturns a string representing the location of the stylesheet.
StyleSheet.mediaRead onlyReturns a
MediaListrepresenting the intended destination medium for style information.StyleSheet.ownerNodeRead onlyReturns a
Nodeassociating this style sheet with the current document.StyleSheet.parentStyleSheetRead onlyReturns a
StyleSheetincluding this one, if any; returnsnullif there aren't any.StyleSheet.titleRead onlyReturns a string representing the advisory title of the current style sheet.
StyleSheet.typeRead onlyReturns a string representing the style sheet language for this style sheet.
Specifications
| Specification |
|---|
| CSS Object Model (CSSOM)> # the-stylesheet-interface> |