mozilla

Revision 449605 of StyleSheet

  • Revision slug: Web/API/StyleSheet
  • Revision title: StyleSheet
  • Revision id: 449605
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment

Revision Content

{{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")}}

Revision Source

<div>
  {{CSSOMRef}}</div>
<p>An object implementing the <code>StyleSheet</code> interface represents a single style sheet. CSS style sheets will further implement the more specialized {{domxref("CSSStyleSheet")}} interface.</p>
<h2 id="Properties" name="Properties">Properties</h2>
<dl>
  <dt>
    {{domxref("StyleSheet.disabled")}}</dt>
  <dd>
    This property indicates whether the current stylesheet has been applied or not.</dd>
  <dt>
    {{domxref("StyleSheet.href")}}</dt>
  <dd>
    Returns the location of the stylesheet.</dd>
  <dt>
    {{domxref("StyleSheet.media")}}</dt>
  <dd>
    Specifies the intended destination medium for style information.</dd>
  <dt>
    {{domxref("StyleSheet.ownerNode")}}</dt>
  <dd>
    Returns the node that associates this style sheet with the document.</dd>
  <dt>
    {{domxref("StyleSheet.parentStyleSheet")}}</dt>
  <dd>
    Returns the stylesheet that is including this one, if any.</dd>
  <dt>
    {{domxref("StyleSheet.title")}}</dt>
  <dd>
    Returns the advisory title of the current style sheet.</dd>
  <dt>
    {{domxref("StyleSheet.type")}}</dt>
  <dd>
    Specifies the style sheet language for this style sheet.</dd>
</dl>
<h2 id="Specification" name="Specification">Specifications</h2>
<table class="standard-table">
  <tbody>
    <tr>
      <th scope="col">Specification</th>
      <th scope="col">Status</th>
      <th scope="col">Comment</th>
    </tr>
    <tr>
      <td>{{ SpecName('CSSOM', '#stylesheet', 'StyleSheet') }}</td>
      <td>{{ Spec2('CSSOM') }}</td>
      <td>No change from {{ SpecName('DOM2 Style') }}.</td>
    </tr>
    <tr>
      <td>{{ SpecName('DOM2 Style', 'stylesheets.html#StyleSheets-StyleSheet', 'StyleSheet') }}</td>
      <td>{{ Spec2('DOM2 Style') }}</td>
      <td>Initial definition.</td>
    </tr>
  </tbody>
</table>
<h2 id="See_also">See also</h2>
<ul>
  <li>{{domxref("CSSStyleSheet")}}</li>
</ul>
Revert to this revision