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.

Received on Tuesday, 15 May 2012 20:42:39 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:13 UTC