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

Boris Zbarsky bzbarsky at MIT.EDU
Tue May 15 18:07:59 PDT 2012

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.  :(


More information about the whatwg mailing list