DOM Reference Manual | All Packages | All Classes | Index | Frames | ||
CSSValue | Properties | Constants | ||
Package | dom.style.css |
Class | public class CSSValue |
Inheritance | CSSValue Object |
Subclasses | CSSPrimitiveValue, CSSValueList |
Introduced in: | DOM 2 Core |
See also
Property | Defined By | ||
---|---|---|---|
DOM 2 Style cssText : DOMString [read-only]
A string representation of the current value. | CSSValue | ||
DOM 2 Style cssValueType : Number [read-only]
A code defining the type of the value as defined above. | CSSValue |
Constant | Defined By | ||
---|---|---|---|
DOM 2 Style CSS_CUSTOM : Number = 3
The value is a custom value. | CSSValue | ||
DOM 2 Style CSS_INHERIT : Number = 0
The value is inherited and the cssText contains "inherit". | CSSValue | ||
DOM 2 Style CSS_PRIMITIVE_VALUE : Number = 1
The value is a primitive value and an instance of the CSSPrimitiveValue
interface can be obtained by using binding-specific casting methods on
this instance of the CSSValue interface. | CSSValue | ||
DOM 2 Style CSS_VALUE_LIST : Number = 2
The value is a CSSValue list and an instance of the CSSValueList interface
can be obtained by using binding-specific casting methods on this instance
of the CSSValue interface. | CSSValue |
DOM 2 Style cssText | property |
cssText:DOMString
[read-only] Introduced in: | DOM 2 Core |
A string representation of the current value.
public function get cssText():DOMString
DOMException — SYNTAX_ERR: Raised if the specified CSS string
value has a syntax error and is unparsable.
| |
DOMException — INVALID_MODIFICATION_ERR: Raised if the
specified CSS string value represents a different type of values than the
values allowed by the CSS property.
| |
DOMException — NO_MODIFICATION_ALLOWED_ERR: Raised if this
declaration is readonly or a property is readonly.
|
See also
DOM 2 Style cssValueType | property |
cssValueType:Number
[read-only] Introduced in: | DOM 2 Core |
A code defining the type of the value as defined above.
public function get cssValueType():Number
See also
DOM 2 Style CSS_CUSTOM | Constant |
public const CSS_CUSTOM:Number = 3
Introduced in: | DOM 2 Core |
The value is a custom value.
See also
DOM 2 Style CSS_INHERIT | Constant |
public const CSS_INHERIT:Number = 0
Introduced in: | DOM 2 Core |
The value is inherited and the cssText contains "inherit".
See also
DOM 2 Style CSS_PRIMITIVE_VALUE | Constant |
public const CSS_PRIMITIVE_VALUE:Number = 1
Introduced in: | DOM 2 Core |
The value is a primitive value and an instance of the CSSPrimitiveValue interface can be obtained by using binding-specific casting methods on this instance of the CSSValue interface.
See also
DOM 2 Style CSS_VALUE_LIST | Constant |
public const CSS_VALUE_LIST:Number = 2
Introduced in: | DOM 2 Core |
The value is a CSSValue list and an instance of the CSSValueList interface can be obtained by using binding-specific casting methods on this instance of the CSSValue interface.
See also