const value = new CSSUnparsedValue(["1em", "#445566", "-45px"]);
for (const [index, fragment] of value.entries()) {
console.log(index, fragment);
}
// 0 "1em"
// 1 "#445566"
// 2 "-45px"CSSUnparsedValue: entries() method / notebook
CSSUnparsedValue: entries() method
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.