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

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 15 May 2012 21:07:59 -0400
Message-ID: <4FB2FDEF.9060809@mit.edu>
To: whatwg@lists.whatwg.org
On 5/15/12 7:33 PM, Kornel LesiƄski wrote:
> In fact, I'd keep @media, because it serves some cases very well (I see
> dpi/bandwidth optimisation as a problem orthogonal to layout adaptation:
> http://geekhood.net/MediaQuery-vs-PerfQuery.png)

@media on video source is terrible for layout adaptation: it's only 
considered when selecting a source.  So if you load the page, then turn 
your device so it's in landscape mode (or resize your browser window or 
whatever), the source won't change, even though which source matches the 
medium might have just changed.

Is the expectation that device-adapting images will reload from the new 
URI in cases like the above?  Or not?  Both answers have some problems.  :(

-Boris
Received on Wednesday, 16 May 2012 01:08:40 GMT

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