Closed
Description
Is it just me, or is the grammar for parsing relative colors missing?
https://drafts.csswg.org/css-color-5/#relative-colors
Channel keywords are defined for each color function, and example usage is provided, but none of the channel keywords appear in the grammar for them.
For example, 3.1. Relative sRGB Colors defines the allowed channel keywords of rgb()
as r
, g
, b
, and alpha
.
And Example 13 shows:
rgb(from indianred 255 g b)
But the grammar is listed as:
rgb() = rgb( [<percentage> | none]{3} [ / [<alpha-value> | none] ]? ) |
rgb( [<number> | none]{3} [ / [<alpha-value> | none] ]? ) |
rgb( [ from <color> ]? [ <number> | <percentage> | none]{3} [ / [<alpha-value> | none] ]? )
<alpha-value> = <number> | <percentage>
Which makes no mention of r
, g
, b
, or alpha
.
It also describes the grammar for the functions like rgb()
as being "extended", but it doesn't link to what it's extending, and indeed appears to be completely replacing the syntax from css-color-4, at least from a grammar definition standpoint.