Menu

1 / 3

Exploring the HTML-in-Canvas Proposal | Codrops

Codrops·Vittorio Retrivi·6 months ago
#RIRaVUoB
#canvas#3d#reactthreefiber#threejs#webgl
Reading 0:00
15s threshold

This post and the demos below are based on an experimental feature that is currently behind a flag, enable it at chrome://flags/#canvas-draw-element in any Chromium-based browser. If the flag is unavailable or the demos still don’t work, try Chrome Canary.

Recently, social media has been buzzing about a new proposal from the WICG that aims to render traditional HTML inside a Canvas , and I have to say, I’m pretty excited about it. I’ve been waiting for something like this ever since I first came across a tweet about the idea back in 2024, so naturally I had to dive in and see what it’s all about.

The Problem

For years, the web has drawn a hard line between two worlds: the structured, accessible richness of HTML and the raw, pixel-level control of canvas .

If you wanted accessible UI components and the flexibility of CSS, you stayed in the DOM.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.