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

Andy Davies dajdavies at gmail.com
Tue May 15 13:42:08 PDT 2012

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.


More information about the whatwg mailing list