Comment by JimDabell
It seems like it would be a lot more efficient to use SVG for screenshot testing design system components rather than raster images.
It seems like it would be a lot more efficient to use SVG for screenshot testing design system components rather than raster images.
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.