{{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")}}
- Is a {{domxref("Boolean")}} representing whether the current stylesheet has been applied or not.
- {{domxref("StyleSheet.href")}} {{readonlyInline}}
- Returns a {{domxref("DOMString")}} representing the location of the stylesheet.
- {{domxref("StyleSheet.media")}} {{readonlyInline}}
- Returns a {{domxref("MediaList")}} representing the intended destination medium for style information.
- {{domxref("StyleSheet.ownerNode")}} {{readonlyInline}}
- Returns a {{domxref("Node")}} associating this style sheet with the current document.
- {{domxref("StyleSheet.parentStyleSheet")}} {{readonlyInline}}
-
Returns a {{domxref("StyleSheet")}} including this one, if any; returns
null
if there aren't any. - {{domxref("StyleSheet.title")}} {{readonlyInline}}
- Returns a {{domxref("DOMString")}} representing the advisory title of the current style sheet.
- {{domxref("StyleSheet.type")}}{{readonlyInline}}
- Returns a {{domxref("DOMString")}} representing 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")}}