HTML-in-Canvas Feels Fake Until You Try to Build With It (opens in new tab)
HTML-in-Canvas feels fake the first time it works. Real DOM. Real CSS. Real layout. Inside canvas. You write a tiny canvas.onpaint, call drawElementImage(), and the browser just… does it. Your styled HTML is suddenly part of a canvas frame. Beautiful. Then you try to build an actual app. Now you have multiple surfaces, resize logic, export timing, React unmounts, cleanup, invalidation, and the classic: wait, is this number CSS pixels or canvas pixels? That's the part where the cool browser pr...
Read the original article