W3C home > Mailing lists > Public > www-validator-css@w3.org > January 2004

Invalid rgb(...) values

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Tue, 27 Jan 2004 08:54:36 +0100
To: www-validator-css@w3.org
Message-ID: <402e1848.151094722@smtp.bjoern.hoehrmann.de>

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 GMT

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