The HTML-in-Canvas API origin trial
Web page · https://developer.chrome.com/blog/html-in-canvas-origin-trial
First seen by Oriel on .
AI summary
Chrome’s experimental HTML-in-Canvas API renders interactive, accessible DOM content into 2D canvas or WebGL/WebGPU textures while preserving browser integrations.
- The origin trial runs in Chrome 148 through 150 and can be tested using Chrome Canary 149 or later with the canvas-draw-element flag.
- Developers add layoutsubtree, render during paint events with drawElementImage, texElementImage2D, or copyElementImageToTexture, then synchronize the element’s CSS transform.
- Supported capabilities include text selection, form controls, accessibility, find-in-page, indexing, extension integration, translation, and Chrome DevTools inspection.
- Three.js provides experimental THREE.HTMLTexture support, while PlayCanvas supports the feature through its texture API.
- Cross-origin iframe content is unsupported, and canvas scrolling or animations cannot update independently of JavaScript, creating potential main-thread performance trade-offs.
#html-in-canvas #webgl #webgpu #web accessibility
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Points
Score reported by the source.
- Hacker News: 119, latest observation ; +115 over observed period since
Comments
Comment count reported by the source.
- Hacker News: 60, latest observation ; +60 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| Hacker News | 50200164 | https://developer.chrome.com/blog/html-in-canvas-origin-trial Read discussion |