W3cubDocs

/DOM

CSSValue

The CSSValue interface represents the current computed value of a CSS property.

Properties

CSSValue.cssText
A DOMString representing the current value.
CSSValue.cssValueType Read only
An unsigned short representing a code defining the type of the value. Possible values are:
Constant Description
CSS_CUSTOM The value is a custom value.
CSS_INHERIT The value is inherited and the cssText contains "inherit".
CSS_PRIMITIVE_VALUE 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.
CSS_VALUE_LIST 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.

Specifications

Browser compatibilityUpdate compatibility data on GitHub

Desktop
Chrome Edge Firefox Internet Explorer Opera Safari
Basic support No ? ? — 62 ? No ?
cssText No ? ? — 62 ? No ?
cssValueType No ? ? — 62 ? No ?
Mobile
Android webview Chrome for Android Edge Mobile Firefox for Android Opera for Android iOS Safari Samsung Internet
Basic support ? ? ? ? — 62 ? ? ?
cssText ? ? ? ? — 62 ? ? ?
cssValueType ? ? ? ? — 62 ? ? ?

See also

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/CSSValue