-
Notifications
You must be signed in to change notification settings - Fork 791
[css-color-5] Grammar for parsing relative colors? #7721
Copy link
Copy link
Closed
Labels
Closed as Question AnsweredUsed when the issue is more of a question than a problem, and it's been answered.Used when the issue is more of a question than a problem, and it's been answered.Commenter SatisfiedCommenter has indicated satisfaction with the resolution / edits.Commenter has indicated satisfaction with the resolution / edits.css-color-5Color modificationColor modification
Metadata
Metadata
Assignees
Labels
Closed as Question AnsweredUsed when the issue is more of a question than a problem, and it's been answered.Used when the issue is more of a question than a problem, and it's been answered.Commenter SatisfiedCommenter has indicated satisfaction with the resolution / edits.Commenter has indicated satisfaction with the resolution / edits.css-color-5Color modificationColor modification
Type
Fields
Give feedbackNo fields configured for issues without a type.
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()asr,g,b, andalpha.And Example 13 shows:
rgb(from indianred 255 g b)But the grammar is listed as:
Which makes no mention of
r,g,b, oralpha.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.