[whatwg] Consider making @srcset do fallback?

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