Skip to content

Comment on Show HN: I created snapDOM to capture DOM nodes as images with exceptional speedparent

Comments

How can svg be faster, and especially more accurate (lets throw some IMG or CSS shadows for fun) than canvas?

You can embed HTML in an SVG via foreignObject. Seems like that's exactly what the library is doing[0].

Whether that's faster or more reliable, I don't know. Seems likely to render different depending on where you view the SVG (especially out of browsers).

[0]: https://github.com/search?q=repo%3Azumerlab%2Fsnapdom%20fore...

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.