An object implementing the StyleSheet
interface represents a single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet
interface.
StyleSheet.disabled
Boolean
representing whether the current stylesheet has been applied or not.StyleSheet.href
Read only
DOMString
representing the location of the stylesheet.StyleSheet.media
Read only
MediaList
representing the intended destination medium for style information.StyleSheet.ownerNode
Read only
Node
associating this style sheet with the current document.StyleSheet.parentStyleSheet
Read only
StyleSheet
including this one, if any; returns null
if there aren't any.StyleSheet.title
Read only
DOMString
representing the advisory title of the current style sheet.StyleSheet.type
Read only
DOMString
representing the style sheet language for this style sheet.Specification | Status | Comment |
---|---|---|
CSS Object Model (CSSOM) The definition of 'StyleSheet' in that specification. | Working Draft | No change from Document Object Model (DOM) Level 2 Style Specification. |
Document Object Model (DOM) Level 2 Style Specification The definition of 'StyleSheet' in that specification. | Obsolete | Initial definition. |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet