W3C home > Mailing lists > Public > www-style@w3.org > January 2011

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 19 Jan 2011 08:33:41 -0800
Message-ID: <AANLkTimj-Qk7nHzPUXdKqQdwBcvU2T10AhQ1Q+chtjcP@mail.gmail.com>
To: Alan Gresley <alan@css-class.com>
Cc: www-style list <www-style@w3.org>
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.

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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:42 UTC