[whatwg] Consider making @srcset do fallback?
Tab Atkins Jr.
jackalmage at gmail.com
Tue Aug 21 13:21:08 PDT 2012
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
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.
More information about the whatwg