- From: Yves Lafon <ylafon@w3.org>
- Date: Wed, 19 Mar 2008 05:37:46 -0400 (EDT)
- To: Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com>
- Cc: www-validator-css@w3.org
On Wed, 19 Mar 2008, Benjamin Hawkes-Lewis wrote:
> Sorry, but I think you've missed the point of the test case:
>
> p { color:red; color:; color:green }
>
> The problem is not that the validator reports a redefinition of color. The
> problem is that if you apply the rule:
>
> "Lexical errors are handled with a skip to matching brace"
>
> Then the validator should skip to the matching brace after "color:;", since
> that is a "lexical error". It should not report any declarations after
> "color:;" at all, whether they are redefinitions or not.
In fact, the CSS21 text says that a UA must read until the end of a
declaration, in that case a ';' or a '}' and in doing that, ignore
matching pairs, like '{..}'
And that's what the bug fix was about, ignoring matching pairs, while
previously it was just looking for a ; or }.
HTH,
--
Baroula que barouleras, au tiéu toujou t'entourneras.
~~Yves
Received on Wednesday, 19 March 2008 09:38:19 UTC