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.

~TJ
Received on Wednesday, 16 May 2012 16:26:56 GMT

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