You’re viewing an archive of outdated material. Visit The Web Standards Project’s updated site to learn about our current mission.

Error Handling and Parsing Bugs (3)

The styles applied here are the following:

P.one {
	transform-code: { duplicate ( color: blue ) };
	color: purple;
	}

p.two { color: green; }
p.three { color: maroon; }

This paragraph, with class one, should be purple. However, MacIE's parser chokes on the use of braces in a value. CSS1's forward compatible parsing rules say that braces ("{" and "}") can be nested. (CSS2 is even clearer that they can be in a declaration's value.) Thus, According to CSS1 (but not CSS2), it is possible to argue that this paragraph might not be purple. However, there should definitely be no problems recovering for the next paragraph.

This paragraph, with class two, should be green. MacIE's parser has trouble recovering, so it isn't.

This paragraph, with class three, should be maroon. It is. So MacIE only takes one extra ruleset to recover from nested braces.