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 -
Is a
Booleanrepresenting whether the current stylesheet has been applied or not. -
StyleSheet.hrefRead only -
Returns a
DOMStringrepresenting the location of the stylesheet. -
StyleSheet.mediaRead only -
Returns a
MediaListrepresenting the intended destination medium for style information. -
StyleSheet.ownerNodeRead only -
Returns a
Nodeassociating this style sheet with the current document. -
StyleSheet.parentStyleSheetRead only -
Returns a
StyleSheetincluding this one, if any; returnsnullif there aren't any. -
StyleSheet.titleRead only -
Returns a
DOMStringrepresenting the advisory title of the current style sheet. -
StyleSheet.typeRead only -
Returns a
DOMStringrepresenting the style sheet language for this style sheet.
Specifications
| Specification | Status | Comment |
|---|---|---|
| CSS Object Model (CSSOM) | Working Draft | No change from Document Object Model (DOM) Level 2 Style Specification. |
| Document Object Model (DOM) Level 2 Style Specification | Recommendation | Initial definition. |