W3C home > Mailing lists > Public > www-style@w3.org > August 2007

Re: [Media Queries] aspect ratio

From: Timur Mehrvarz <timur.mehrvarz@web.de>
Date: Wed, 22 Aug 2007 11:20:02 +0200
Message-Id: <96E9C393-1F4B-454D-A581-27F92EB80A37@web.de>
Cc: www-style@w3.org
To: Spartanicus <mk98762@gmail.com>


On 22.08.2007, at 00:40, Spartanicus wrote:

>> http://lists.w3.org/Archives/Public/www-archive/2007Aug/0033.html
>
> Why would you need media queries to do this?
>
>> http://lists.w3.org/Archives/Public/www-archive/2007Aug/0034.html
>
> I can see the need for a viewport width media query for that use  
> case, I
> don't see any purpose for an aspect-ratio media query.

I should have mentioned, that all images are individual SVG objects.  
My MQ look something like this:

/* landscape: 6 columns */
@media all and (min-device-aspect-ratio: 1/1){
   object{width:15.7%}
}

/* portrait: 4 columns */
@media all and (max-device-aspect-ratio: 1/1){
   object{width:23.6%}
}

The desired criteria is the aspect ratio of the rendering area. I  
really don't want to use a width based query here.

Timur
Received on Wednesday, 22 August 2007 09:20:37 GMT

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