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

how should this invalid CSS be parsed?

From: see <csad7@t-online.de>
Date: Sat, 03 Nov 2007 21:53:34 +0100
Message-ID: <472CDFCE.2090004@gmail.com>
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
Received on Saturday, 3 November 2007 20:53:55 GMT

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