Draw live DOM subtrees directly into 2D, WebGL, or WebGPU canvas contexts
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
Chrome's HTML-in-Canvas API lets developers draw live DOM subtrees directly into 2D, WebGL, or WebGPU canvas contexts while the browser keeps the content interactive and accessible. The API aims to combine the accessibility of the DOM with the pixel-level control of canvas.