W3C home > Mailing lists > Public > www-style@w3.org > December 2001

Re: WD-css3-color-20010305 comments

From: Etan Wexler <ewexler@stickdog.com>
Date: Mon, 3 Dec 2001 00:25:07 -0500
To: Web style list <www-style@w3.org>
Message-Id: <20011203052603.9D6123CB28@server10.safepages.com>
Jens Müller pondered in response to me:

>> "EM { color: rgb(255,0,0) }     /* RGB range 0-255   */"
>> Eliminate the range restriction.
> Why?

If the range restriction really existed, the declaration 
"color: rgb(300, 0, 0)" would be invalid and ignored.  Instead, 
CSS1 (<http://www.w3.org/TR/REC-CSS1#color-units>) 
dictates that user agents accept the declaration and clip the value 
to the sRGB gamut.  CSS2 (<file://localhost/h/www.w3.org/T
R/REC-CSS2/syndata.html#color-units>) and CSS3 
r-20010305#numerical>)  are even more lax, dictating that 
user agents accept the declaration and leaving clipping as an issue 
of the device gamut.

CSS1 clips computed color values while CSS2 and CSS3 clip 
actual color values.  In no case does CSS impose a range 
restriction on specified color values.  Therefore we should 
eliminate the stated range restriction.

Etan Wexler
Received on Monday, 3 December 2001 00:57:58 UTC

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