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

[whatwg] So if media-queries aren't for determining the media to be used what are they for?

From: Andy Davies <dajdavies@gmail.com>
Date: Tue, 15 May 2012 21:42:08 +0100
Message-ID: <CABbusA+3x6CPW+2-Lr5x4LoA1eJvUm=+9C+df01jGsNR5j-7Hw@mail.gmail.com>
To: whatwg@lists.whatwg.org
Looking at the srcset proposal it appears to be recreating aspects of
media-queries in a terse less obvious form...

   <img src="face-600-200 at 1.jpeg" alt=""
        srcset="face-600-200 at 1.jpeg 600w 200h 1x,
                face-600-200 at 2.jpeg 600w 200h 2x,
                face-icon.png       200w 200h">

We've already got media queries so surelt we should be using them to
determine which image should be used and if media-queries don't have
features we need then we should be extending them...

I'd like to see media-queries extended to support bandwidth, svg etc.,
 then we give developers the option to detected features and choose
media types appropriately.

Andy
Received on Tuesday, 15 May 2012 20:42:39 GMT

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