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

Re: Validating media queries in Java

From: Henri Sivonen <hsivonen@iki.fi>
Date: Sat, 17 Nov 2007 17:27:08 +0200
Cc: W3C Style List <www-style@w3.org>
Message-Id: <7A025ADB-28EC-41DC-A5E7-D0B2C68EAFBE@iki.fi>
To: fantasai <fantasai.lists@inkedblade.net>

On Nov 16, 2007, at 19:02, fantasai wrote:

> We could disallow calc() in media queries.

That would certainly make validators easier to write. :-)

I decided to complete my current implementation without calc() support  
and to cross additional bridges if the CSS WG decides that calc() is  
part of media queries and UAs implement it, too.

> I don't see much of a use case for it.

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).

Henri Sivonen
Received on Saturday, 17 November 2007 15:27:23 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:31 UTC