{{CSSOMRef}}
An object implementing the StyleSheet
interface represents a single style sheet. CSS style sheets will further implement the more specialized {{domxref("CSSStyleSheet")}} interface.
Properties
- {{domxref("StyleSheet.disabled")}}
- This property indicates whether the current stylesheet has been applied or not.
- {{domxref("StyleSheet.href")}}
- Returns the location of the stylesheet.
- {{domxref("StyleSheet.media")}}
- Specifies the intended destination medium for style information.
- {{domxref("StyleSheet.ownerNode")}}
- Returns the node that associates this style sheet with the document.
- {{domxref("StyleSheet.parentStyleSheet")}}
- Returns the stylesheet that is including this one, if any.
- {{domxref("StyleSheet.title")}}
- Returns the advisory title of the current style sheet.
- {{domxref("StyleSheet.type")}}
- Specifies the style sheet language for this style sheet.
Specifications
Specification | Status | Comment |
---|---|---|
{{ SpecName('CSSOM', '#stylesheet', 'StyleSheet') }} | {{ Spec2('CSSOM') }} | No change from {{ SpecName('DOM2 Style') }}. |
{{ SpecName('DOM2 Style', 'stylesheets.html#StyleSheets-StyleSheet', 'StyleSheet') }} | {{ Spec2('DOM2 Style') }} | Initial definition. |
See also
- {{domxref("CSSStyleSheet")}}