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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 16 May 2012 09:25:58 -0700
Message-ID: <CAAWBYDBDe7DEWKW26y6SZK+DSzdmhuRzrHuUwS5hpL120iaGrQ@mail.gmail.com>
To: Simon Pieters <simonp@opera.com>
Cc: "whatwg@whatwg.org" <whatwg@whatwg.org>
On Wed, May 16, 2012 at 5:13 AM, Simon Pieters <simonp@opera.com> wrote:
> The width/height descriptors in srcset seem to be difficult for people to
> get right, even people who read the spec.
> * It's not clear from the syntax that it refers to the viewport size rather
> than the image size.
> * It's not clear if it's min-width or max-width.

Absolutely agreed.  Like several others have suggested, I think we
should just go with a "min-width:100px" approach, which is much
clearer.  It also lets us add "max-width", though that may complicate
the resource choosing algorithm a bit.

Received on Wednesday, 16 May 2012 16:26:56 UTC

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