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.193.51.208.132.1121157095.squirrel@webmail.essi.fr>
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 Wednesday, 13 July 2005 08:26:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:16 GMT