Canvas applications gain pixel control and lose almost everything else. Text layout, selection, copy and paste, form controls, translation, find-in-page, screen reader semantics, and browser autofill all stop working the moment the interface becomes pixels. Teams work around it with DOM overlays, screenshot libraries, or hand-drawn text. Each workaround breaks somewhere.
HTML-in-Canvas changes the tradeoff. It lets the browser paint live DOM into a canvas while keeping hit testing and accessibility. Most public demos use it for filters and visual effects. I wanted to use it for something that had to behave like a real product.
What the API actually changes
The important part is not that you can draw HTML into a canvas. It is that the browser keeps the DOM alive underneath. A headline is still a headline. A radio button is still a radio button. The focus order, the accessible name, and the caret survive the paint.
That means a canvas interface can be spatial without becoming a screenshot. You can pan and zoom a board, but the cards on it still have real text, real controls, and real keyboard behavior. The visual layer and the semantic layer stop fighting.
The design rules I used
Throughline is a spatial narrative board for a fictional neighborhood cinema. Ten cards tell a launch story. You can pan, zoom, drag, edit a headline, check a task, present the sequence, and export a PNG.
The rules were simple:
- Real UI, not a screenshot. Text, inputs, checkboxes, focus order, and screen reader names survive the canvas.
- The effect supports the content. No shader, distortion, or filter is allowed to make the copy harder to read.
- One clear path. Explore, then present, then decide. Every screen supports that path.
- Graceful by default. A browser without the API still gets the content, not a blank canvas.
- Accessible by construction. The accessible tree is the product, not an afterthought.
Those rules are not decoration. They are the reason the demo is interesting. A canvas that merely looks good is a poster. A canvas that preserves the document is a new kind of interface.
What it does not solve
HTML-in-Canvas is not a universal replacement for the DOM. It is Chrome-only today. CSS transforms on drawable elements are ignored for drawing, so the camera has to move instead. Touch pan works, but pinch zoom is not there yet. The exported PNG is the current board view, not a print layout.
The limits are part of the story. The flat fallback is not a failure state. It is the proof that the content was real all along.
The lesson
The web already has the best document model we have. Canvas should not ask us to throw it away. The interesting future is not “canvas or DOM.” It is canvas with the document still inside it.
That is a harder engineering problem than drawing pixels. It is also the one worth solving.
Adapted from the Throughline product brief and architecture notes.
Thanks for reading.
Written by Jim Merioles / November 20, 2026