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

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 UTC