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

Re: [whatwg] Problems with width/height descriptors in srcset

From: Jeremy Keith <jeremy@adactio.com>
Date: Mon, 21 May 2012 19:09:24 +0200
Message-Id: <39214C1B-1CC3-44AC-8983-6A4CF00CC8AA@adactio.com>
To: WHATWG List <whatwg@whatwg.org>
Simon asked:
>> It also lets us add "max-width", though that may complicate
>> the resource choosing algorithm a bit.
>> ~TJ
> Does doing so solve any use cases?

Yes, absolutely. I can go through it all again, but basically having both a min-width/height and a max-width/height option gives the developers the choice of either building in a "Mobile First" or Desktop First" way.


Use a small image by default in src and list larger and larger images in srcset
Use a large image by default in src and list smaller and smaller images in srcset.

If you want specific examples of responsive sites currently using one or other of these techniques, I'll be able to find them for you.


Jeremy Keith

a d a c t i o

Received on Monday, 21 May 2012 17:10:26 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:42 UTC