[whatwg] Media queries, viewport dimensions, srcset and picture

Mathew Marquis mat at matmarquis.com
Mon Jun 11 14:39:13 PDT 2012

On May 29, 2012, at 6:49 AM, Florian Rivoal wrote:

>> * It has two attributes that could easily be confused as doing the
>> same job. There's little clear logic as to why they're split, from an
>> authors viewpoint.
> It might be confusing, but there is logic in the splitting:
> srcset="....." lets you describe the properties of a set of
> equivalent images, and the browser decides which
> one is more appropriate given the environment.
> <picture><source media="..." lets you decide which image
> should be displayed based on the properties of the medium
> you're displaying on.

This makes perfect sense, and certainly seems to cover all of the potential use cases of `picture` and `srcset` alone — even so far as preserving the brevity of the original proposal, in cases where that markup pattern is most appropriate.

Is it fair to say that `srcset` will likely remain drafted as a solution to the resolution issue alone, and that `picture` with `srcset` functionality added should be handled as a separate proposal altogether? Just looking for some guidance on how to proceed from here.

Mat Marquis

More information about the whatwg mailing list