http://www.w3.org/DOM/DOMTM git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225913 13f79535-47bb-0310-9956-ffa450edef68
76 lines
2.5 KiB
XML
76 lines
2.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- CSSValue interface -->
|
|
|
|
<interface name="CSSValue" id="CSS-CSSValue" since="DOM Level 2">
|
|
<descr>
|
|
<p>
|
|
The <code>CSSValue</code> interface represents a simple or a complex
|
|
value. A <code>CSSValue</code> object only occurs in a context of a CSS
|
|
property.
|
|
</p>
|
|
</descr>
|
|
|
|
<group id="CSS-CSSValue-types" name="UnitTypes">
|
|
<descr>
|
|
<p>An integer indicating which type of unit applies to the value.</p>
|
|
</descr>
|
|
<constant name="CSS_INHERIT" type="unsigned short" value="0">
|
|
<descr><p>The value is inherited and the <code>cssText</code> contains
|
|
"inherit".</p>
|
|
</descr>
|
|
</constant>
|
|
<constant name="CSS_PRIMITIVE_VALUE" type="unsigned short" value="1">
|
|
<descr>
|
|
<p>The value is a primitive value and an instance of the
|
|
<code>CSSPrimitiveValue</code> interface can be obtained by using
|
|
binding-specific casting methods on this instance of the
|
|
<code>CSSValue</code> interface.</p>
|
|
</descr>
|
|
</constant>
|
|
<constant name="CSS_VALUE_LIST" type="unsigned short" value="2">
|
|
<descr><p>The value is a <code>CSSValue</code> list and an instance of
|
|
the <code>CSSValueList</code> interface can be obtained by using
|
|
binding-specific casting methods on this instance of the
|
|
<code>CSSValue</code> interface.</p>
|
|
</descr>
|
|
</constant>
|
|
<constant name="CSS_CUSTOM" type="unsigned short" value="3">
|
|
<descr><p>The value is a custom value.</p>
|
|
</descr>
|
|
</constant>
|
|
</group>
|
|
|
|
<attribute id="CSS-CSSValue-cssText" name="cssText" type="DOMString" readonly="no">
|
|
<descr>
|
|
<p>
|
|
A string representation of the current value.
|
|
</p>
|
|
</descr>
|
|
<setraises>
|
|
<exception name="DOMException">
|
|
<descr>
|
|
<p>
|
|
SYNTAX_ERR: Raised if the specified CSS string value has a syntax
|
|
error (according to the attached property) or is unparsable.
|
|
</p>
|
|
<p>INVALID_MODIFICATION_ERR: Raised if the specified CSS string value
|
|
represents a different type of values than the values allowed by
|
|
the CSS property.</p>
|
|
<p>
|
|
NO_MODIFICATION_ALLOWED_ERR: Raised if this value is readonly.
|
|
</p>
|
|
</descr>
|
|
</exception>
|
|
</setraises>
|
|
</attribute>
|
|
|
|
<attribute id="CSS-CSSValue-cssValueType" name="cssValueType" type="unsigned short" readonly="yes">
|
|
<descr>
|
|
<p>
|
|
A code defining the type of the value as defined above.
|
|
</p>
|
|
</descr>
|
|
</attribute>
|
|
|
|
</interface>
|