Proposal for New HTML Canvas APIs to Enhance Rendering of HTML Content
By
dannyobrien
10mo ago· 7 min readenCode
100/100
Golden Brown
Bagelometer↗
Baker's choice. Dense with flavour, light on filler.
Score100TypenewsSentimentneutral
Summary
The article discusses a proposal for new HTML Canvas APIs aimed at rendering HTML content into the canvas for Canvas 2D and WebGL. The motivation behind this proposal is the lack of web APIs for rendering complex layouts of text and other content into a <canvas>, which affects accessibility, internationalization, performance, and quality. The proposal is a subset of a previous one and includes use cases for styled and laid-out content.
Key quotes
· 3 pulledThere is no web API to easily render complex layouts of text and other content into a <canvas>.
<canvas>-based content suffers in accessibility, internationalization, performance, and quality.
This proposal is a subset of a previous proposal covering APIs to allow live HTML elements.
Contribute to WICG/html-in-canvas development by creating an account on GitHub.

