[Bug 1269] color: rgb(real, int, int) should be reported as an error

http://www.w3.org/Bugs/Public/show_bug.cgi?id=1269





------- Additional Comments From info@gtalbot.org  2005-08-26 17:07 -------
Yves, the parsing error is detected and reported but the error message is rather
vague in my opinion. "Invalid RGB function" will certainly confuse a few people
and does not help as best as one could. 

1- Would it be possible to refine the error message? Just asking...

2- If one submits the file
http://www.hixie.ch/tests/evil/css/css21/tests/t040306-syntax-01-f.htm
the qa-dev.w3.org:8001/css-validator CSS validator reports that 

p#percentpercentpercent1  {

     color : rgb(0.0, 50.0, 0.0);

}
p#percentpercentpercent2 {

     color : rgb(0.0, 49.99, 0.0)

are valid info when the submitted rules were

    p#percentpercentpercent1 { color: rgb(0%, 50%, 0%) }
    p#percentpercentpercent2 { color: rgb(0%, 49.99%, 0%) }

Notice that the "%" is lost. Small glitch. Should I open a bug for that?

http://qa-dev.w3.org:8001/css-validator/validator?uri=http%3A%2F%2Fwww.hixie.ch%2Ftests%2Fevil%2Fcss%2Fcss21%2Ftests%2Ft040306-syntax-01-f.htm

Received on Friday, 26 August 2005 17:07:37 UTC