W3C home > Mailing lists > Public > www-style@w3.org > February 2007

Re: [CSS21] valid values with "rgb()"

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 26 Feb 2007 17:04:27 -0500
Message-ID: <45E3596B.5030205@mit.edu>
To: del@alum.mit.edu, www-style Mailing List <www-style@w3.org>

Del Merritt wrote:
> Instead, the subsequent examples show all-integer or all-percentage 
> values.  That Lie&Bos would get this "wrong" suggests an issue with the 
> spec.  (Or was there a spec change subsequent to the book's 
> publication?

CSS1 has this to say on the matter:

   The format of an RGB value in the functional notation is 'rgb('
   followed by a comma-separated list of three numerical values
   (either three integer values in the range of 0-255, or three
   percentage values in the range of 0.0% to 100.0%) followed
   by ')'. Whitespace characters are allowed around the numerical values.

CSS2 and CSS2.1 have the wording you cited (which differs only in its handling 
of values outside the 0-255 and 0%-100% range).  So looks like the spec has said 
what it says all along.  Not sure what the deal with howcome and Bert's book is.  ;)

Received on Monday, 26 February 2007 22:05:08 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:27 UTC