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:
http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2012-May/036143.html

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:08 GMT