← all releases
Google (Chrome Team)·Nov 9, 2026·rolling·open source

HTML-in-Canvas API

The HTML-in-Canvas API allows developers to render live, interactive, and accessible DOM subtrees directly into 2D, WebGL, and WebGPU canvas contexts. It bridges the gap between high-performance pixel-level graphics and the rich semantic capabilities of the web platform.

Web APIChromeGraphicsWeb Development
overview

The HTML-in-Canvas API allows developers to render live, interactive, and accessible DOM subtrees directly into 2D, WebGL, and WebGPU canvas contexts. It bridges the gap between high-performance pixel-level graphics and the rich semantic capabilities of the web platform.

key features
  • 01Native rendering of interactive DOM subtrees into 2D, WebGL, and WebGPU canvases
  • 02Automatic accessibility support for screen readers and assistive technologies
  • 03Full integration with browser features like Find-in-Page, autofill, translation, and extensions
  • 04Direct CSS styling and DevTools inspection for canvas-based UI elements
  • 05Support for media export via toDataURL(), toBlob(), and captureStream()
related productsbrowse all →