HTML-in-Canvas: The “why” behind the viral 0 ▲ HTMHell 30 minutes ago · 12 min read2473 words · Tech · hide by Natalia MarkoborodovaIn the history of HTMHell, 35 entries in the Hell collection and about 130 Advent Calendar articles since 2021, the <canvas> element has never been roasted. Not once. This is probably because there was never much to roast. Until Chrome 157, a canvas full of text and buttons was, as far as HTML was concerned, a single element: the text and buttons were just pixels, with no markup behind them. You can't write bad markup if there's no markup. Canvas wasn't in HTMHell. Like the souls in limbo, the first circle of Dante's hell, it did nothing wrong. It was just shut out on a technicality. This year, the deal changed. Chrome 157 shipped the HTML-in-Canvas API, and before it even shipped, the web lost its mind over it. Let's talk about what it is, and, more interestingly, why so many people cared. Welcome to canvas hell Bad markup gets you into HTMHell. No markup gets you here: <!-- 🔥 Canvas hell 🔥 --><canvas id="wishlist" width="600" height="400"… Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town