W3C home > Mailing lists > Public > www-style@w3.org > April 2008

Re: [CSS21] DELIM? in core syntax

From: Anne van Kesteren <annevk@opera.com>
Date: Sat, 05 Apr 2008 11:35:53 +0200
To: "Benjamin Hawkes-Lewis" <bhawkeslewis@googlemail.com>, fantasai <fantasai.lists@inkedblade.net>
Cc: www-style@w3.org
Message-ID: <op.t84sx3ek64w2qv@annevk-t60.oslo.opera.com>

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 GMT

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