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>


  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(...)



for a test case.
Received on Tuesday, 27 January 2004 05:45:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:40:39 UTC