Post #1091803
2026-04-04 09:47 UTC
Nice to see excitement around the proposed html-in-canvas feature, but remember you can already put canvas behind/atop HTML elements.
The benefits of this new feature are:
➡️ Readbacks (eg sending to a VideoEncoder)
➡️ Showing HTML on non-planar shapes
➡️ Using shaders on HTML
Replies (3)
-
@jaffathecake@mastodon.social 2026-04-04 09:57
There are a number of optimisations the browser cannot do if you render html to a canvas, such as partial painting, optional painting, texture size management… so you should only do it if there's good reason.
-
@chris@nutmeg.social 2026-04-04 09:58
@jaffathecake as a web dev who also does some WebGL work, I despise making 2D UIs in game engines. I'm usually just overlaying HTML. So, the opportunity to more immersively integrate a 2D CSS UI in a 3D world sounds awesome.
-
@andreu@mastodon.andreubotella.com 2026-04-04 15:08
@jaffathecake I recently found another benefit: being able to programmatically generate an image from rendered HTML/CSS content.