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

On Tue, Jan 18, 2011 at 9:25 PM, Alan Gresley <alan@css-class.com> wrote:
> 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);

No, that's specifying multiple background images, which is a
completely different feature.  It means that you want to download and
display both of them, with the example.svg on top.

~TJ

Received on Wednesday, 19 January 2011 16:34:35 UTC