- From: Arve Bersvendsen <arve@virtuelvis.com>
- Date: Thu, 07 Aug 2003 20:58:51 +0200
- To: www-style@w3.org
First: There seems to be a typo in the current candidate recommendation for CSS3 media queries. <URL:http://www.w3.org/TR/css3-mediaqueries/#device-aspect-ratio> The example provides two examples @media screen and (max-device-ratio: 1/1) /* portrait or square */ @media screen and (min-device-ratio: 1/1) /* landscape or square */ Which I believe should read @media screen and (max-device-aspect-ratio: 1/1) /* portrait or square */ @media screen and (min-device-aspect-ratio: 1/1) /* landscape or square */ Secondly: The specification does not seem to address exactly how aspect ratios should be queried. The spec seems to assert/dictate that pixel height divided by pixel width provides the correct device aspect ratio. For some devices, one cannot assume that pixel-height/pixel-width provides the correct aspect ratio. The archetypal example is a normal CRT monitor running in 1280x1024 resolution: If you simply query pixel widths, the device aspect ratio comes off as 5/4, whereas the physical aspect ratio still is 4/3; The width/height ratio of a single pixel is 16/15. (I can also remember older devices, such as the Amiga, where the width/height-ratio of a single pixel was 2/1 for certain resolutions) -- Arve Bersvendsen
Received on Thursday, 7 August 2003 14:59:02 UTC