MDN self-hosted library · e01.org

CSSUnparsedValue: values() method

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

js
const value = new CSSUnparsedValue(["1em", "#445566", "-45px"]);

for (const fragment of value.values()) {
  console.log(fragment);
}
// "1em"
// "#445566"
// "-45px"