[css-color] Moving sections, and grammar for <color>

Hi,

In the current ED:

https://dvcs.w3.org/hg/csswg/raw-file/931f8a9374a1/css-color/Overview.html

sections 4 to 10 each define some values of the <color> type. They 
should be subsections of section 3 which defines <color>, so separate 
them form other things this document defines. (The properties.)


Also, it’s not clear which of all the defined grammars are <color> 
values. For example, it looks like hwb() is meant to be a <color>, but 
<named-hue> is not. But I’m guessing here.

A grammar for <color> (near the beginning of section 3) should fix this. 
Something like:

   <color> = rgb() | rgba() | hsl() | hsla() |
             <named-color> | transparent | currentcolor |
             hwb() | gray() | device-cmyk() | color()

-- 
Simon Sapin

Received on Wednesday, 26 March 2014 22:16:21 UTC