<?xml version="1.0" encoding="utf-8"?>
<!-- StyleSheet interface -->

<interface name="StyleSheet" id="StyleSheets-StyleSheet" since="DOM Level 2">
  <descr>
    <p>
      The <code>StyleSheet</code> interface is the abstract base interface for
      any type of style sheet. It represents a single style sheet associated
      with a structured document. In HTML, the StyleSheet interface represents
      either an external style sheet, included via the HTML
      <xspecref href="&html40;/struct/links.html#h-12.3">
        LINK</xspecref> element, or an inline
      <xspecref href="&html40;/present/styles.html#h-14.2.3">
        STYLE</xspecref> element. In XML, this interface represents an external
      style sheet, included via a <xspecref href="&xml-stylesheet;">style sheet
        processing instruction</xspecref>.
    </p>
  </descr>
  
  <attribute type="DOMString" readonly="yes" name="type" id="StyleSheets-StyleSheet-type">
    <descr>
      <p>
	This specifies the style sheet language for this style sheet. The style
	sheet language is specified as a content type (e.g. "text/css").  The
	<xspecref href="&html40;/types.html#type-content-type">content
	type</xspecref> is often specified in the <code>ownerNode</code>.  Also
	see the <xspecref href="&html40;/struct/links.html#adef-type-A">type
	attribute definition</xspecref> for the <code>LINK</code> element in
	HTML 4.0, and the type pseudo-attribute for the XML <xspecref
	href="&xml-stylesheet;">style sheet processing instruction</xspecref>.
      </p>
    </descr>
  </attribute>
  
  <attribute type="boolean" name="disabled" id="StyleSheets-StyleSheet-disabled">
    <descr>
      <p>
	<code>false</code> if the style sheet is applied to the document.
	<code>true</code> if it is not. Modifying this attribute may cause a
	new resolution of style for the document. A stylesheet only applies if
	both an appropriate medium definition is present and the disabled
	attribute is false. So, if the media doesn't apply to the current user
	agent, the <code>disabled</code> attribute is ignored.
      </p>
    </descr>
  </attribute>
  
  <attribute type="Node" readonly="yes" name="ownerNode" id="StyleSheets-StyleSheet-ownerNode">
    <descr>
      <p>
	The node that associates this style sheet with the document. For HTML,
	this may be the corresponding <code>LINK</code> or <code>STYLE</code>
	element. For XML, it may be the linking processing instruction. For
	style sheets that are included by other style sheets, the value of this
	attribute is <code>null</code>.
      </p>
    </descr>
  </attribute>
  
  <attribute type="StyleSheet" readonly="yes" name="parentStyleSheet" id="StyleSheets-StyleSheet-parentStyleSheet">
    <descr>
      <p>
	For style sheet languages that support the concept of style sheet
	inclusion, this attribute represents the including style sheet, if one
	exists. If the style sheet is a top-level style sheet, or the style
	sheet language does not support inclusion, the value of this attribute
	is <code>null</code>.
      </p>
    </descr>
  </attribute>
  
  <attribute type="DOMString" readonly="yes" name="href" id="StyleSheets-StyleSheet-href">
    <descr>
      <p>
	If the style sheet is a linked style sheet, the value of its attribute
	is its location. For inline style sheets, the value of this attribute
	is <code>null</code>. See the <xspecref
	href="&html40;/struct/links.html#adef-href">href
	attribute definition</xspecref> for the <code>LINK</code> element in HTML
	4.0, and the href pseudo-attribute for the XML <xspecref
	href="&xml-stylesheet;/#The xml-stylesheet processing instruction">style sheet processing
	instruction</xspecref>.
      </p>
    </descr>
  </attribute>
  
  <attribute type="DOMString" readonly="yes" name="title" id="StyleSheets-StyleSheet-title">
    <descr>
      <p>
	The advisory title.  The title is often specified in the
	<code>ownerNode</code>.  See the <xspecref
	href="&html40;/struct/global.html#adef-title">title attribute
	definition</xspecref> for the <code>LINK</code> element in HTML 4.0,
	and the title pseudo-attribute for the XML <xspecref
	href="&xml-stylesheet;/#The xml-stylesheet processing instruction">style sheet processing instruction</xspecref>.
      </p>
    </descr>
  </attribute>
  
  <attribute type="MediaList" readonly="yes" name="media" id="StyleSheets-StyleSheet-media">
    <descr>
      <p>
	The intended destination media for style information.  The media is
	often specified in the <code>ownerNode</code>. If no media has been
	specified, the <code>MediaList</code> will be empty. See the <xspecref
	href="&html40;/present/styles.html#adef-media">media
	attribute definition</xspecref> for the <code>LINK</code> element in
	HTML 4.0, and the media pseudo-attribute for the XML <xspecref
	href="&xml-stylesheet;/#The xml-stylesheet processing instruction">style sheet processing
	instruction </xspecref>. Modifying the media list may cause a change to
	the attribute <code>disabled</code>.
      </p>
    </descr>
  </attribute>
</interface>
