W3C home > Mailing lists > Public > www-style@w3.org > August 2007

Re: [Media Queries] aspect ratio

From: Håkon Wium Lie <howcome@opera.com>
Date: Tue, 21 Aug 2007 21:32:38 +0200
Message-ID: <18123.15830.499936.90473@gargle.gargle.HOWL>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-style@w3.org

Also sprach Boris Zbarsky:

 > > First, it is argued that the aspect ration of the device isn't that
 > > interesting, one should (instead/also) query the aspect ratio of the
 > > window.
 > 
 > So this would mean that when the user resizes the window the UA would need to 
 > check rules in these @media to see whether they've now started applying, right?

Your question is also relevant for the "width" and "height" media
features.

In Opera, which support "width" and "height" you have to reload the
document for the changes to take effect. It's certainly possible to
implement it so that users don't have to press reload, but the use
case seems slim (except for demo purposes) and the spec doesn't
require it.

You can see it in use on my home page -- try making the window
narrower than 400px and reload.

So, the answer is no -- the UA would not *need* to check these rules
during the resize, but there is nothing prohibiting it from doing so.

-h&kon
              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome
Received on Tuesday, 21 August 2007 19:32:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:52 GMT