We propose new HTML Canvas APIs for rendering HTML content into the canvas for Canvas 2D and WebGL.
Status
Authors: Stephen Chenney, Chris Harrelson, Khushal Sagar, Vladimir Levin, Fernando Serboncini
Champions: Stephen Chenney, Chris Harrelson
This proposal is a subset of a previous proposal covering APIs to allow live HTML elements.
Motivation
There is no web API to easily render complex layouts of text and other content into a <canvas> . As a result, <canvas> -based content suffers in accessibilty, internationalization, performance and quality.
Use cases
Styled, Laid Out Content in Canvas. There’s a strong need for better styled text support in Canvas. Examples include chart components (legend, axes, etc.), rich content boxes in creative tools, and in-game menus.
There’s a strong need for better styled text support in Canvas. Examples include chart components (legend, axes, etc.), rich content boxes in creative tools, and in-game menus. Accessibility Improvements. There is currently no guarantee that the canvas fallback content currently used for <canvas> accessibility always matches the rendered content, and such fallback content can be hard to generate. With this API, elements drawn into the canvas bitmap will match their corresponding canvas fallback.
... continue reading