MDN self-hosted library · e01.org

CSSUnparsedValue: keys() 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 index of value.keys()) {
  console.log(index);
}
// 0
// 1
// 2