W3C home > Mailing lists > Public > www-validator-css@w3.org > July 2005

Bugs in the validator with quoted keywords and invalid values

From: <rouel@essi.fr>
Date: Tue, 12 Jul 2005 10:31:35 +0200 (CEST)
Message-ID: <60753.>
To: www-validator-css@w3.org


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.


Jean-Guilhem Rouel
Received on Wednesday, 13 July 2005 08:26:45 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:40:41 UTC