[whatwg] Features for responsive Web design
Andy Davies
dajdavies at gmail.com
Thu Aug 9 01:16:02 PDT 2012
On 8 August 2012 17:44, Edward O'Connor <eoconnor at apple.com> wrote:
> Hi Markus,
>
> You wrote:
>
>> Anyway, with your proposal, would this be valid, to address the
>> bandwidth-only use case?:
>>
>> <img src="normal.jpg" alt="" srcset="high.jpg 2x, normal.jpg 1x">
>
> You don't need the ", normal.jpg 1x" because src="" has an implied 1x.
> The above could simply be done like so:
>
> <img src="normal.jpg" alt="appropriate alt text" srcset="high.jpg 2x">
>
I know it's there for graceful degradation reasons but doesn't setting
the 1x image via src and the others via srcset just add to developers
confusion?
Would also like to see if there's a way of using srcset to hint to the UA
that it can skip the image under low throughput conditions e.g. GPRS.
Same would apply to image-set in CSS
Cheers
Andy
More information about the whatwg
mailing list