News for hackers. Stuff that matters.
Re:Show HN: CSS ICON, an icon set crafted by pure CSS by pcwalton on Monday October 17, 2016 @09:25AM (#12724745)
The painting performance should be pretty similar for both CSS and SVG: they both get rasterized via the same 2D vector graphics backend in popular browser engines. Most 2D vector graphics backends go to a lot of effort to cull invisible regions.

CSS icons may be slightly slower than an optimized SVG due to the overhead of restyling and layout. Also, the browser-side painting may be a bit slower for CSS icons, because border painting involves fairly complex logic compared to drawing a path (and for example in Gecko you have to construct display list items for individual borders but not paths). But we're talking about really small differences: I highly doubt they matter in practice.

Re:Show HN: CSS ICON, an icon set crafted by pure CSS by wentin on Monday October 17, 2016 @11:39AM (#12725991)
this is awesome analyze, thanks!
Re:Show HN: CSS ICON, an icon set crafted by pure CSS by nthcolumn on Monday October 17, 2016 @03:21PM (#12728413)
What about caching - is that an advantage over inline SVG? I imagine the css would compress better too? I'd like to see animated ones. Holy geocities! I have no clue how it works. Amazing.
Re:Show HN: CSS ICON, an icon set crafted by pure CSS by pcwalton on Monday October 17, 2016 @04:04PM (#12729097)
CSS and SVG are cached the same way on disk.