[whatwg] Features for responsive Web design
Nils Dagsson Moskopp
nils at dieweltistgarnichtso.net
Wed Sep 5 16:01:11 PDT 2012
Aaron Gustafson <aaron at easy-designs.net> schrieb am Wed, 5 Sep 2012
18:42:37 -0400:
> […]
>
> Might I propose an option 3 (which is in no way a vote of support for
> Hixies suggested srcset, I like the proposed video-like syntax far
> more):
>
> [{ image: 'img2.jpg', density: '2x', query: '300w' }, { image:
> 'img3.jpg', density: '2x', query: '600w' }]
>
> If the values are actually keyed to something predictable, we might
> stand some chance of actually reading/manipulating them without having
> to determine which value is which if they are out of order (it stand
> to reason the browser would have done this already, so…)
Still, this would mean that existing DOM-like node-based data
structures could not be used easily – even if filled through HTML5lib –
because there would be no obvious mapping for such fractal complexity.
--
Nils Dagsson Moskopp // erlehmann
<http://dieweltistgarnichtso.net>
More information about the whatwg
mailing list