- From: Etan Wexler <ewexler@stickdog.com>
- Date: Mon, 3 Dec 2001 00:25:07 -0500
- To: Web style list <www-style@w3.org>
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
(<http://www.w3.org/TR/2001/WD-css3-colo
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