cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Make SVG blocking detectable

hloth
Making moves

Please make it possible for web developers to detect SVG blocking without JavaScript!

Currently svg.disable = true causes browser to silently ignore svg but keep it in DOM tree. Which makes it impossible to fallback or monkey patch this without JS. The only workaround I found is overlaying rasterized icon with svg but this doesn't work with translucent icons page still has to serve both raster and vector graphics.

I assume adding a CSS selector or a special html tag is way out of scope for this suggestions forum but maybe allow developers to specify a fallback tag on svg element that renders the raster version of vector

Firefox  

1 REPLY 1

hloth
Making moves

Another idea: allow us to put "alt" tag to svg and render it when svg is blocked just like <img>