The CSSValue interface represents the current computed value of a CSS property.
Properties
CSSValue.cssText- A
DOMStringrepresenting the current value. CSSValue.cssValueTypeRead only- An
unsigned shortrepresenting a code defining the type of the value. Possible values are:Constant Description CSS_CUSTOMThe value is a custom value. CSS_INHERITThe value is inherited and the cssTextcontains"inherit".CSS_PRIMITIVE_VALUEThe value is a primitive value and an instance of the CSSPrimitiveValueinterface can be obtained by using binding-specific casting methods on this instance of theCSSValueinterface.CSS_VALUE_LISTThe value is a CSSValuelist and an instance of theCSSValueListinterface can be obtained by using binding-specific casting methods on this instance of theCSSValueinterface.
Specifications
| Specification | Status | Comment |
|---|---|---|
| Document Object Model (DOM) Level 2 Style Specification The definition of 'CSSValue' in that specification. |
Recommendation | Initial definition |
Browser compatibility
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
|---|---|---|---|---|---|
| Basic support | No support | (Yes) | ? | No support | ? |
| Feature | Android | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android |
|---|---|---|---|---|---|---|---|
| Basic support | ? | (Yes) | (Yes) | ? | ? | ? | ? |
See also
Document Tags and Contributors
Tags:
Contributors to this page:
Sebastianz
Last updated by:
Sebastianz,