- From: <rouel@essi.fr>
- Date: Tue, 12 Jul 2005 10:31:35 +0200 (CEST)
- 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 UTC