Re:Show HN: I created snapDOM to capture DOM nodes as images...
by jdiff on Sunday April 27, 2025 @01:41PM
(#43813740)
Capturing HTML as scalable SVGs is huge, how do you manage condensing all of CSS and its quirks into an SVG? Do you only support a subset of styling properties and rely on the browser to calculate layouts for you?
[ Parent
| on HN ]
Re:Show HN: I created snapDOM to capture DOM nodes as images...
by tinchox6 on Sunday April 27, 2025 @01:47PM
(#43813788)
I was upset about the size of generated svg file because at first all styles were inlined in each element. So I created a function to make mini css classes (.c1, c2, c3,...) So the final size is quite small.