W3cubDocs

/DOM

CSSOMString

CSSOMString is used to denote string data in CSSOM specifications and can refer to either DOMString or USVString. When a specification says CSSOMString, it depends on the browser vendors to choose whether to use DOMString or USVString. While browser implementations that use UTF-8 internally to represent strings in memory can use USVString when the specification says CSSOMString, implementations that already represent strings as 16-bit sequences might choose to use DOMString instead.

Implementation differences

Browser DOMString or USVString for CSSOMString
Firefox (Gecko) USVString
Chrome (Blink) USVString
Safari (WebKit) USVString
Edge (EdgeHTML) -
Opera (Blink) USVString

Specifications

Specification Status Comment
CSS Object Model (CSSOM)
The definition of 'CSSOMString' in that specification.
Working Draft Initial definition.

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/CSSOMString