W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2012

[whatwg] Consider making @srcset do fallback?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 21 Aug 2012 13:21:08 -0700
Message-ID: <CAAWBYDD2tN4emcLeiSjY=hSgwN+1MhTfhxXj96+2d2itmMsr-Q@mail.gmail.com>
To: WHATWG <whatwg@lists.whatwg.org>
Currently, the CSS image-set() function (sister spec to <img srcset>)
is specified to do fallback to the less-desirable options if the first
choice doesn't load or can't be decoded.  I specified it this way
because it seemed reasonable, and it's how the similar image()
function works (which is specifically designed to be used for
fallback).

It was later pointed out to me, though, that @srcset doesn't do any
fallback.  Once it chooses a candidate image, it sticks with it, and
if that image is invalid, you just get a broken image.

I'd like to harmonize the two, and the CSSWG seems to prefer the
fallback behavior.  Is there any interest in making @srcset do similar
fallback?  If not, I'll change image-set() to also not do fallback.

~TJ
Received on Tuesday, 21 August 2012 20:22:09 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:44 UTC