W3C home > Mailing lists > Public > www-style@w3.org > November 2007

how should this invalid CSS be parsed?

From: Christof Hoeke <csad7@t-online.de>
Date: Sat, 03 Nov 2007 21:57:56 +0100
Message-ID: <472CE0D4.20707@t-online.de>
To: www-style@w3.org

hi,
I have the following CSS

     a {x:1}
     }
     b{y:2}
     c{z:3}

The specification says (as I remember) that if an error is found it is 
resolved with the next valid block.

So I thought the CSS above should be equivalent to:

     a {x:1}
     c{z:3}

Browsers on the other hand seem to simple remove the "}" and the CSS 
would be equivalent to

     a {x:1}
     b{y:2}
     c{z:3}

Which is right (according the specification intend)?

thanks a lot
Chris

p.s.: sorry for the repost, I replied to an old thread...
Received on Saturday, 3 November 2007 20:58:15 GMT

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