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

Re: [whatwg] responsive images

From: Julian Reschke <julian.reschke@gmx.de>
Date: Tue, 22 May 2012 17:31:04 +0200
Message-ID: <4FBBB138.6090502@gmx.de>
To: Glenn Maynard <glenn@zewt.org>
Cc: whatwg@lists.whatwg.org, Paul Court <paul@pmcnetworks.co.uk>
On 2012-05-22 17:02, Glenn Maynard wrote:
> (I wish people would stop starting new threads about the same topic.)
>
> On Tue, May 22, 2012 at 5:53 AM, Paul Court<paul@pmcnetworks.co.uk>  wrote:
>
>> As a HTML author and programmer, I just cannot see myself implementing the
>> current srcset proposal on sites. As a programmer, it has very much got
>> what we would call a "bad code smell".
>>
>> <img src="face-600-200@1.jpeg" alt="" srcset="face-600-200@1.jpeg 600w
>> 200h 1x, face-600-200@2.jpeg 600w 200h 2x, face-icon.png 200w 200h">
>>
>
> Actually, it's pretty clean; you've just made it ugly by sticking it all on
> one line.
>
> <img src="face-600-200@1.jpeg" alt=""
>       srcset="face-600-200@1.jpeg 600w 200h 1x,
>               face-600-200@2.jpeg 600w 200h 2x,
>               face-icon.png       200w 200h">
>
> It's no uglier than CSS syntaxes like background.

It may not be uglier but it's much more fragile as the examples and the 
prose in the spec give the impression that you can use the "," to 
tokenize, which would be incorrect.

> ...

Best regards, Julian
Received on Tuesday, 22 May 2012 15:32:56 GMT

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