CSS.paintWorklet.addModule("css-component.js");Houdini APIs / notebook
Houdini APIs
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
li {
background-image: paint(my-component, stroke, 10px);
--highlights: blue;
--theme: green;
}