CSSValue : Object

Value of a CSS style attribute.

Browser/User Agent Support

IEMozillaNetscapeOperaSafariNetscapte
no1.0+nononono

Constructors

ConstructorIEMozillaNetscapeOperaSafariNetscapte
Value of a CSS style attribute.
no1.0+nononono
 

Properties

PropertyIEMozillaNetscapeOperaSafariNetscapte
Text representing the CSS value.
no1.0+nononono
 
Type of CSS value represented by the object. See remarks for possible values.
no1.0+nononono
 

References

CSSPrimitiveValue | CSSValueList

Availability

HTML DOM Level 2 | W3C

Constructor Detail

CSSValue CSSValue()

Value of a CSS style attribute.

Visibility
internal

Property Detail

String cssText

Text representing the CSS value.

For examples, see the quirksmode test page:

http://www.quirksmode.org/dom/tests/stylesheets.html

Availability

HTML DOM Level 2 | W3C

Number cssValueType - read only

Type of CSS value represented by the object. See remarks for possible values.

Remarks

The following constants are valid values for cssValueType:

  • CSS_INHERIT = 0 - Indicates that the value of the CSS style attribute is inherited.
  • CSS_PRIMITIVE_VALUE = 1 - Indicates that the value of the CSS style attribute is a primitive value.
  • CSS_VALUE_LIST = 2 - Indicates that the CSS value actually contains a list of values.
  • CSS_CUSTOM = 3 - Indicates that the CSS value is of a type not supported by CSS or DOM standards.
Availability

HTML DOM Level 2 | W3C