Re: Validating media queries in Java

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
hsivonen@iki.fi
http://hsivonen.iki.fi/

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