Skip to content

Add HTML-in-canvas demos - #406

Merged
chrisdavidmills merged 12 commits into
mdn:mainfrom
chrisdavidmills:html-in-canvas-demos
Nov 18, 2026
Merged

chrisdavidmills merged 12 commits into
mdn:mainfrom
chrisdavidmills:html-in-canvas-demos

Conversation

@chrisdavidmills

Copy link
Copy Markdown
Contributor

Chrome 157 adds support for the HTML-in-Canvas API; also see https://chromestatus.com/feature/5172548013916160.

This PR adds three demos to show how it can be used to render HTML content inside 2d canvas, WebGL, and WebGPU.

@chrisdavidmills
chrisdavidmills requested review from a team as code owners October 23, 2026 13:40
@chrisdavidmills

Copy link
Copy Markdown
Contributor Author

@ewewraw

@chrisdavidmills
chrisdavidmills marked this pull request as draft October 27, 2026 16:23
@chrisdavidmills
chrisdavidmills marked this pull request as ready for review November 17, 2026 12:52

@pepelsbey pepelsbey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you 🙂

A few suggestions below. Also, links from the root readme are missing. That would be something like:

- The "html-in-canvas" directory contains examples demonstrating the [HTML-in-canvas API](https://github.com/WICG/html-in-canvas). See the [HTML-in-canvas README](html-in-canvas/README.md) for more information.

Comment thread html-in-canvas/README.md Resolved
chrisdavidmills and others added 4 commits November 17, 2026 15:26
Co-authored-by: Vadim Makeev <hi@pepelsbey.dev>
Co-authored-by: Vadim Makeev <hi@pepelsbey.dev>
Co-authored-by: Vadim Makeev <hi@pepelsbey.dev>
Co-authored-by: Vadim Makeev <hi@pepelsbey.dev>
@chrisdavidmills

Copy link
Copy Markdown
Contributor Author

A few suggestions below. Also, links from the root README are missing.

Good spot. Added in the next commit.

@pepelsbey pepelsbey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect! Thanks 🙂

Found two more nits

chrisdavidmills and others added 2 commits November 18, 2026 07:47
Co-authored-by: Vadim Makeev <hi@pepelsbey.dev>
Co-authored-by: Vadim Makeev <hi@pepelsbey.dev>
@chrisdavidmills
chrisdavidmills merged commit a2c5719 into mdn:main Nov 18, 2026
1 check passed
@chrisdavidmills
chrisdavidmills deleted the html-in-canvas-demos branch November 18, 2026 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants