This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Trying to parse this example p { color:red; color{;color:maroon}; color:green } from <http://www.w3.org/TR/CSS21/syndata.html#parsing-errors>, "Malformed declarations", does not deliver the result as required by the specification which should be: p { color:green } Similar problems occur in some of the other examples for malformed declarations from the spec.
That's because the CSS Validator makes no attempt at supporting CSS 2.1 and these things have essentially undefined behavior in CSS 2.0.
Björn, you are right. I'm updating my report so that it reflects that it is only valid for CSS3, see: <http://www.w3.org/TR/2003/WD-css3-syntax-20030813/#error-handling> The profile selector offers CSS3 as a supported level, so it should work in that mode. However, it doesn't and produces the same erroneous validated stylesheet.
http://www.w3.org/TR/CSS2/syndata.html#parsing-errors is saying: "In some cases, user agents must ignore part of an illegal style sheet. This specification defines ignore to mean that the user agent parses the illegal part (in order to find its beginning and end), but otherwise acts as if it had not been there.". To me, it matches the examples in http://www.w3.org/TR/CSS21/syndata.html#parsing-errors regarding malformed declarations, and what was defined already for invalid at-keywords. It is now fixed and should parse all the "malformed declaration" section, as written in the examples. See http://qa-dev.w3.org:8001/css-validator/