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

Re: Proposal: version at-rule

From: Alan Plum <alan@cologneweb.com>
Date: Fri, 26 Mar 2004 17:05:12 -0500 (EST)
Message-ID: <4064A8C2.5070002@cologneweb.com>
To: www-style@w3.org




Chris Moschini wrote:
(snip)
> #myDiv {
> 	width: 100px;
> 	padding: 20px;
> 
> 	if( calculated-width != 100px )
> 		width: 80px;
> }
> 
(snip)
> And this example has obvious problems - for example, Mozilla and Opera would read
> this CSS and probably reset the width despite having done things correctly.
(snip)

Unlikely. As you don't have any semi-colon before the "width: 80px;" and 
after the "padding: 20px;", a browser like those would probably read:

if( calculated-width != 100px ) width: 80px;

Seeing that if( is not a supported property, it will most likely ignore 
everything until the semi-colon.

The same happens with both properties in the following fictional line:

background- color: #000;

as "background-" returns an error, the color: property should not be set.


At least it shouldn't. If it does in Mozilla, please file a bug at 
Mothra [1].


[1] http://bugzilla.mozilla.org



-ap
Received on Wednesday, 31 March 2004 09:11:25 GMT

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