W3C home > Mailing lists > Public > www-style@w3.org > November 2008

Re: [css3-mediaqueries] feedback on device-aspect-ratio, aspect-ratio and orientation

From: Christoph Päper <christoph.paeper@crissov.de>
Date: Mon, 24 Nov 2008 20:12:50 +0100
Message-Id: <1C0F3012-3C05-422E-A3A3-7D35509FD8DA@crissov.de>
To: W3C style mailing list <www-style@w3.org>

Cameron McCormack (2008-10-31):
> Dean Jackson:
>>
>> aspect-ratio and device-aspect-ratio
>>
>> We think these should take a number (float) rather than a ratio  
>> (defined as a string). While ratio gives the same result it  
>> doesn't seem worth introducing a new type just for these queries.
>
> Wouldn’t that make it difficult (or impossible ...) to match some  
> aspect ratios like 4:3?  Wouldn’t the author then be forced to  
> write something like:
>
>   (min-aspect-ratio: 1.333) and (max-aspect-ratio: 1.334)

You could also allow 'calc' in MQs:

   (aspect-ratio: calc(4/3))

(I didn't check current syntax restrictions.)
Received on Monday, 24 November 2008 19:13:09 GMT

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