After two years of trials, the Chrome team has enabled the HTML-in-Canvas API in version 157. It lets regular HTML elements such as text, forms and video be drawn inside a canvas element, where until now everything had to be painted with JavaScript without interactivity or accessibility tools. The API has been submitted for inclusion in the WHATWG HTML standard. For now only Chrome and Chrome for Android support it, while the other major browsers do not yet.

What it means: For those building visually demanding web apps, such as charts, 3D product configurators or interactive catalogues, the change solves an old problem: until now they had to choose between the flexibility of canvas and ready-made HTML elements with proper behaviour. Being able to combine them opens the way to richer experiences, but also to more annoying ads. For Greek companies building web apps, the practical issue is compatibility. Since Safari and Firefox do not yet support the API, any use needs a fallback, or a large share of users, especially on iPhone, will see a broken page. Accessibility matters too: the European Accessibility Act already applies to many online shops and banking services, so every new technique must be tested with screen readers. For now, the sensible approach is to experiment in non-critical areas and wait for broader browser support before relying on it. Teams should also keep an eye on the standardisation process at WHATWG, because the final specification may still change in ways that affect early implementations.

Read the original on The Register

Related service: Custom software

Related stories