html icon indicating copy to clipboard operation
html copied to clipboard

Add HTML-in-Canvas APIs

Open foolip opened this issue 4 months ago • 3 comments

Handwavy things that need fleshing out are marked with 👋

  • [ ] At least two implementers are interested (and none opposed):
    • Chromium
  • [ ] Tests are written and can be reviewed and commented upon at:
  • [ ] Implementation bugs are filed:
    • Chromium: https://issues.chromium.org/u/1/hotlists/6783002
    • Gecko: …
    • WebKit: …
    • Deno (only for timers, structured clone, base64 utils, channel messaging, module resolution, web workers, and web storage): …
    • Node.js (only for timers, structured clone, base64 utils, channel messaging, and module resolution): …
  • [ ] Corresponding HTML AAM & ARIA in HTML issues & PRs:
  • [ ] MDN issue is filed: …
  • [ ] The top of this comment includes a clear commit message to use.

(See WHATWG Working Mode: Changes for more details.)


/canvas.html ( diff ) /index.html ( diff ) /indices.html ( diff ) /infrastructure.html ( diff ) /references.html ( diff ) /rendering.html ( diff )

foolip avatar Aug 21 '25 12:08 foolip

@Kaiido thank you for the review! I've fleshed things out more, renaming to drawHTMLElement() (because drawElement() will probably not be workable in WebGL) and adding the layoutsubtree attribute.

There's still some handwaving going on of course, in particular what causes the subtree to be laid out but not painted.

foolip avatar Aug 29 '25 09:08 foolip

I've fleshed this out some more now, in particular the hit testing.

foolip avatar Sep 17 '25 16:09 foolip

Thanks for the review @progers! I've left two comments unresolved where I'd like more feedback.

foolip avatar Dec 05 '25 12:12 foolip