W3C home > Mailing lists > Public > www-style@w3.org > March 2004

Re: Proposal: version at-rule

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sun, 28 Mar 2004 21:21:23 -0500
Message-Id: <200403290221.i2T2LNfA004232@no-knife.mit.edu>
To: "Chris Moschini" <cmoschini@myrealbox.com>
Cc: www-style@w3.org

> #myDiv {
>   width: 100px;
>   padding: 20px;
> 
>   if( calculated-width != 100px )
>     width: 80px;
> }
> a browser with no support for the if statement skips it and just does
> sets the second width.

No, a browser with no support for the if statement skips it and everything up
to the next ';' or '}' char (balancing parens and quotes, etc), if I read the
CSS parsing rules correctly.  So it would completely ignore the whole if body.

On the other hand, what does "calculated-width" mean?  What if the user
stylesheet has "padding: 0 !important"?

Boris
-- 
"This isn't right.  This isn't even wrong."

                -- Wolfgang Pauli on a paper submitted 
                   by a physicist colleague
Received on Sunday, 28 March 2004 21:21:36 GMT

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