Re: [css3-images] image() function and file formats

On 19/01/2011 8:37 AM, Tab Atkins Jr. wrote:
> The CSS3 Images spec
> <http://dev.w3.org/csswg/css3-images/#image-notation>  defines the
> image() function, which allows authors to specify multiple images,
> representing the first one that doesn't give an error (that is, if the
> first one 404s or similar, the browser will instead fetch the second
> one in the list, etc.).
>
> Right now, the image() function has a form of light type-sniffing via
> the file extension, such that if the UA sees an image with an
> extension corresponding to a type of image the UA *knows* it doesn't
> support, it can skip trying to load the image altogether and just jump
> to the next image in the list.


Does this not work.

background: url(example.svg), url(example.png);


FF 3.6.13 simply shows the PNG but has downloaded the SVG.



-- 
Alan http://css-class.com/

Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo

Received on Wednesday, 19 January 2011 05:26:04 UTC