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

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

-Boris

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