Re: [Media Queries] aspect ratio

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 UTC