My last post was about using SVG values for the
background-image property, and I pointed out one big problem with the technique:
The drawback of this is that it’s not ready for use just yet—browsers that don’t support SVG in
background-imagewill not provide any fallback, even if you supply another
background-imagevalue; so in non-supporting browsers, no image at all will be displayed.
While having a look through the list of features for developers planned for Firefox 4 earlier today, I noticed this:
You can now use SVG with the
imgelement, as well as the background image in CSS.
I know you can already use SVG in
background-image with Safari, Chrome and Opera, and this, coupled with Internet Explorer’s push towards SVG and the strong chance this will be available in IE9, made me decide to take a closer look.