Invalid rgb(...) values

Hi,

  p { color: rgb(0,100%,0) }

is invalid as CSS 1/2/3 require that either percentages or integers are
used as arguments for rgb(...), you may not mix them. The Validator does
not detect this error and the pretty printed style sheet is

  p { color : rgb(0,100.0,0) } 

which is rather different from the input and illegal aswell since 100.0
is not an integer but a real number which is not allowed for rgb(...)

See 

  http://jigsaw.w3.org/css-validator/validator?text=p+%7B+color%3A+rgb%280%2C100%25%2C0%29+%7D

for a test case.

Received on Tuesday, 27 January 2004 05:45:18 UTC