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

Re: Validating media queries in Java

From: Anne van Kesteren <annevk@opera.com>
Date: Sat, 17 Nov 2007 23:53:50 +0100
To: "Henri Sivonen" <hsivonen@iki.fi>, fantasai <fantasai.lists@inkedblade.net>
Cc: "W3C Style List" <www-style@w3.org>
Message-ID: <op.t1ykj0f664w2qv@annevk-t60.oslo.opera.com>

On Sat, 17 Nov 2007 16:27:08 +0100, Henri Sivonen <hsivonen@iki.fi> wrote:
> If you have a design that puts a column of text (width in ems) and a  
> bitmap (width in px) side by side on wide view ports, you might want to  
> query whether the view port is at least x ems plus y pixels wide (and if  
> not, load a different design instead).

This use case only works if the design uses the 'rem' unit and not the  
'em' unit. Though I suppose you could make a case for combining relative  
('px' for instance) and absolute ('mm' for instance) using calc() in a  
min-width qeury.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Saturday, 17 November 2007 22:54:03 GMT

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