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

Re: [whatwg] Implementation complexity with elements vs an attribute (responsive images)

From: Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com>
Date: Sun, 13 May 2012 13:19:16 +0100
Message-ID: <CAEhSh3do-80pFfSQv3ymOhpjP0KNXPKbptKRO6brL4AGX87BLg@mail.gmail.com>
To: David Goss <dvdgoss@gmail.com>
Cc: whatwg@lists.whatwg.org, James Graham <jgraham@opera.com>
On Sun, May 13, 2012 at 12:26 PM, David Goss <dvdgoss@gmail.com> wrote:
> As I understand it, the <img srcset> syntax would
> have to keep getting extended every time we wanted to test a different
> property.

It doesn't "test" anything. It tells the UA metadata about the image
set it would otherwise have to obtain by downloading them all.

UAs can pick the right image based on this metadata plus what they
know about dimensions and orientation of some container, pixel
density, and connectivity.

It would need to get extended if we learnt of further image metadata
we needed to expose to UAs to help them pick the optimal download
(maybe MIME type).

Media queries test client properties, but this syntax is attempting to
describe an image. If we were trying to avoid reinventing wheels at
all costs, we'd want to look at an image description vocabulary like
EXIF:

    http://www.w3.org/2003/12/exif/

--
Benjamin Hawkes-Lewis
Received on Sunday, 13 May 2012 12:20:05 GMT

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