Technology news and discussion on TalkFuse.
HTML-in-Canvas ships and could make the web a lot more creative…and a lot stupider
Google has shipped the HTML-in-Canvas API in Chrome 157, allowing developers to place HTML controls and content inside a canvas that can be styled and rendered with JavaScript. It could make web apps more interactive and visually ambitious, while also giving advertisers new ways to make pages intrusive.
Canvas has traditionally supported custom graphics but not ordinary HTML controls, text formatting, interactivity or accessibility aids. The API is supported in Chrome and Chrome for Android, with no official support yet from other major browsers, and has been proposed for the WHATWG HTML standard. Early demos include controls wrapped around 3D objects, interactive charts and a book whose text responds to a dragon; the technology still has bugs and compatibility limits.
In short
- Chrome 157 ships HTML-in-Canvas.
- Developers can combine HTML controls with canvas graphics.
- New visual effects may also create more intrusive ads.