RE: Bugs in the validator with quoted keywords and invalid values

CSS 2.1 is only a Working Draft; it has not yet reached full
recommendation status.

The CSS Validator has not been modified to be able to validate
stylesheets as CSS 2.1 yet.

If you know Java, you could help make the necessary modifications to the
validator.

> -------- Original Message --------
> Subject: Bugs in the validator with quoted keywords and invalid values
> From: rouel@essi.fr
> Date: Tue, July 12, 2005 4:31 am
> To: www-validator-css@w3.org
> 
> Hi,
> 
> While doing some tests, I found that some simple "illegal values" examples
> from http://www.w3.org/TR/CSS21/syndata.html#parsing-errors and
> http://www.w3.org/TR/REC-CSS1#css1-conformance seem to be badly validated
> by the validator.
> 
> First of them is:
> img { background: "red" } /* keywords cannot be quoted */
> The validator does not throw any error nor warning, and produces this
> "validated" CSS:
> img  {
>     background : ;
> }
> wich is actually invalid.
> The correct produced style sheet should be:
> img { }
> 
> The second is quite similar:
> img { float: left here }  /* "here" is not a value of 'float' */
> No errors nor warnings are produced, and the "valid" CSS produced is:
> img  {
>     float : left;
> }
> instead of
> img { } according to the specifications.
> 
> An intersting point is that:
> img { float: here left }
> throws a validation error.
> 
> Thanks,
> 
> Jean-Guilhem Rouel

Received on Thursday, 14 July 2005 00:55:15 UTC