News for hackers. Stuff that matters.
Re:HTML-in-Canvas by tombh on Saturday August 02, 2025 @09:32PM (#44773363)
Where does SVG's `foreignObject` fit into this? It seems that SVG supports all of thelproposal already? As is evidenced by projects like https://github.com/zumerlab/snapdom that can take "screenshots" of the webpage by copying the DOM with inlined styles into a `foreignObject` tag in an SVG. Then of course that SVG can be rendered to a canvas.
Re:HTML-in-Canvas by progers7 on Saturday August 02, 2025 @10:54PM (#44773700)
This proposal is a lot like an easier way to draw foreign object into canvas. This proposal supports new features too, such as updating the canvas when the content changes, and interactivity.