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

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

From: Markus Ernst <derernst@gmx.ch>
Date: Wed, 23 May 2012 21:48:39 +0200
Message-ID: <4FBD3F17.9090403@gmx.ch>
To: Florian Rivoal <florianr@opera.com>
Cc: whatwg@lists.whatwg.org
Am 23.05.2012 17:21 schrieb Florian Rivoal:
> Here's what I think we should do:
> 1) simplyfy srcset to only accept the *x qualifier
> 2) add support for srcset as an attribute of the <source> sub-element of
> the <picture> element (in addition to src, or instead of it? I am not
> sure).
> Then you could do stuff like this:
> <picture>
> <source media="(orientation:landscape)" srcset="long.jpg 1x, long2.jpg 2x">
> <source media="(orientation:portrait)" srcset="tall.jpg 1x, tall2.jpg 2x">
> <img src="fallback.jpg" />
> </picture>

Yesterday I made a similar proposal in an other thread:

I'd like to suggest that @srcset in this form would also be suitable for 
the <img> element, to address the optimization use case (without art 
direction) without the verbosity of <picture>.
Received on Wednesday, 23 May 2012 19:49:35 UTC

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