How it started
In the HTML-in-canvas API, an element has to be a descendant of the <canvas> that draws it. That's a
sensible rule for layout and hit testing, though it felt restrictive straight away. I wanted to know if you could put a
<slot> inside a canvas in a shadow root and keep ordinary HTML outside the canvas, projecting it in
only when you wanted to draw it.
That first experiment became <canvas-slot> and the bare declarative shadow DOM
tests on /slot-bare/. It worked, and once ordinary light DOM could be projected into a 2D,
WebGL or WebGPU canvas without losing clicks, typing, selection or accessibility, I kept asking what else would hold up.
From slots to the rest of the site
One experiment led to another. What if a fragment shader warped a live form (Shader CSS)?
What if a lens magnified 4px text and kept it sharp (A lens over live DOM)? What if a form sat on
simulated jelly or cloth (Physical UI), inside a three.js scene (3D form),
inside a customisable <select> (Customisable select), over video
(HTML overlays on video), inside a Qt, Flutter, Godot or Dear ImGui app
(Native UI), or streamed live to a phone over WebRTC (Remote component)?
Every experiment on this site exists to push the boundaries of the API and show what it can do, including the places where it breaks or hits a limit.
Reusable libraries
Along the way, several of the experiments turned into small, standalone ES modules and custom elements that you can load on
another site. Every file under /lib/ is served with Access-Control-Allow-Origin: * and licensed
under Apache 2.0.