Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release > by-pkgid > 1fce4ef419c004933c122e6231d6200b > files > 214

xml-commons-apis-manual-1.4.01-18.mga5.noarch.rpm

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

<interface id="CSS-ViewCSS" name="ViewCSS" inherits="views::AbstractView" since="DOM Level 2">
  <descr>
    <p>
      This interface represents a CSS view. The <code>getComputedStyle</code>
      method provides a <b>read only access</b> to the <xspecref
      href="&css2;/cascade.html#computed-value">computed values</xspecref> of
      an element.
    </p>
    <p>
      The expectation is that an instance of the <code>ViewCSS</code>
      interface can be obtained by using binding-specific casting methods on an
      instance of the <code>AbstractView</code> interface.
    </p>
    <p>
      Since a computed style is related to an <code>Element</code> node, if
      this element is removed from the document, the associated
      <code>CSSStyleDeclaration</code> and <code>CSSValue</code> related to
      this declaration are no longer valid.
    </p>
    
  </descr>

  <method id="CSS-CSSview-getComputedStyle" name="getComputedStyle">
    <descr>
      <p>
	This method is used to get the computed style as it is defined in
	<bibref ref="CSS2"/>.
      </p>
    </descr>
    <parameters>
      <param name="elt" type="Element" attr="in">
	<descr>
	  <p>
	    The element whose style is to be computed.  This parameter cannot
	    be null.
	  </p>
	</descr>
      </param>
      <param name="pseudoElt" type="DOMString" attr="in">
	<descr>
	  <p>
	    The pseudo-element or <code>null</code> if none.
	  </p>
	</descr>
      </param>
    </parameters>
    <returns type="CSSStyleDeclaration">
      <descr>
	<p>
	  The computed style. The <code>CSSStyleDeclaration</code> is
	  read-only and contains only absolute values.
	</p>
      </descr>
    </returns>
    <raises>
      <!-- No Exception -->
    </raises>
  </method>
  
</interface>