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

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 Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome
Received on Tuesday, 21 August 2007 19:32:53 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:30 UTC