News for hackers. Stuff that matters.
Re:Show HN: Dropflow, a CSS layout engine for node or <canvas> by dtf on Thursday March 21, 2024 @01:52PM (#39782002)
As far as I remember, it's down to security concerns.

You can actually insert your HTML into a SVG foreignObject, and then drawImage() that onto your canvas. But your HTML-in-SVG document will need to load all its own resources, fonts, CSS etc.. which makes this process rather tedious.

There are no comments on this comment yet.