[whatwg] Features for responsive Web design

Aaron Gustafson aaron at easy-designs.net
Wed Sep 5 16:05:13 PDT 2012


On Wed, Sep 5, 2012 at 7:01 PM, Nils Dagsson Moskopp
<nils at dieweltistgarnichtso.net> wrote:
> 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.


Agreed. It’s not ideal by any means, but it would be a teensy bit
better than the options mentioned IMHO.

Cheers,

Aaron

----
Aaron Gustafson
Principal
Easy Designs, LLC
@aarongustafson



More information about the whatwg mailing list