Le 7 mars 2014 à 11:23, John <[email protected]> a écrit :

> .is some kind of css required to show the png on those browsers that won't 
> handle the svg file?
> I guess something for IE?

Try conditional comments?

But this reminds me - older Android (2.x and 3 iirc) also doesn't support SVG 
at all, and tends to choke when parsing a CSS file that contains references to 
SVG images. In this case, you're put of luck with CSS hackery. I use Modernizr 
to detect SVG support, and then use the generated class to target as needed.

Example
.nosvg E { background: url(image.png) no-repeat red; } /* <— IE < 9, old 
android */
.svg E { background: url(image.svg) no-repeat red; } /* modern browsers, SVG 
file */

Philippe
--
Philippe Wittenbergh
http://l-c-n.com




______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to