Hacker News new | ask | show | jobs
by JimDabell 367 days ago
It seems like it would be a lot more efficient to use SVG for screenshot testing design system components rather than raster images.
1 comments

The SVG in question contains HTML elements as <foreignObject> nodes and thus still depends on the browser to render them. A bitmap has zero dependencies, and can be processed and compared fully outside a browser.
Oh wow, I didn’t realise that. That means SVG output is way less useful than I expected.