- From: Bert Bos <bert@w3.org>
- Date: Tue, 27 Feb 2007 00:03:55 +0100
- To: del@alum.mit.edu, www-style Mailing List <www-style@w3.org>
Boris Zbarsky wrote:
>
> 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. ;)
Well, Del, it seems you found a bug in our book :-) That merits a
mention on the errata page http://www.w3.org/Style/LieBos3e/
I don't know why we wrote rgb(100%,0,0) instead of rgb(100%,0%,0%).
Probably just a mistake. It seems there is only one occurrence.
Bert
--
Bert Bos ( W 3 C ) http://www.w3.org/
http://www.w3.org/people/bos W3C/ERCIM
bert@w3.org 2004 Rt des Lucioles / BP 93
+33 (0)4 92 38 76 92 06902 Sophia Antipolis Cedex, France
Received on Monday, 26 February 2007 23:04:17 UTC