img.css:
With this solution svg graphics scale up as you zoom in. It is dependent on JS because it uses onerror. 

svg.css:
Graphics don't scale up as you zoom in. svg size can be move to the stylesheet, but img size must stay inline.