Packagedom.style.css
Classpublic class CSSValue
InheritanceCSSValue Inheritance Object
Subclasses CSSPrimitiveValue, CSSValueList

Introduced in: DOM 2 Core 

The CSSValue interface represents a simple or a complex value. A CSSValue object only occurs in a context of a CSS property.

See also

W3C - DOM Level 2 Style: CSSValue


Public Properties
 PropertyDefined 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
Public Constants
 ConstantDefined 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
Property Detail
DOM 2 Style cssTextproperty
cssText:DOMString  [read-only]

Introduced in: DOM 2 Core 

A string representation of the current value.


Implementation
    public function get cssText():DOMString

Throws
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 cssValueTypeproperty 
cssValueType:Number  [read-only]

Introduced in: DOM 2 Core 

A code defining the type of the value as defined above.


Implementation
    public function get cssValueType():Number

See also

Constant Detail
DOM 2 Style CSS_CUSTOMConstant
public const CSS_CUSTOM:Number = 3

Introduced in: DOM 2 Core 

The value is a custom value.

See also

DOM 2 Style CSS_INHERITConstant 
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_VALUEConstant 
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_LISTConstant 
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