Re: [CSS21] DELIM? in core syntax

On Sat, 05 Apr 2008 11:28:04 +0200, Benjamin Hawkes-Lewis  
<bhawkeslewis@googlemail.com> wrote:
> While IDENT does fully cover vendor-prefixed properties, note that  
> DELIM? also (incidentally) allowed the following "star property"  
> parsing-bug hack for passing properties to IE7 and below
>
> *width: 100px;

It's not just * that does that:

   http://annevankesteren.nl/2007/02/ie7-css-hacks


> to be parsed and discarded as a malformed declaration by conforming  
> implementations, rather than rendering the entire input untokenizable.

Actually, the core syntax does not deal with that.

   body { * ; color:lime }

for instance does not match the core syntax either and is still parsed as  
if

   body { color:lime }

was specified.

The malformed declaration entry in

   http://www.w3.org/TR/CSS21/syndata.html#parsing-errors

takes care of handling that correctly.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Saturday, 5 April 2008 09:36:31 UTC