Re: [csswg-drafts] [css-colors-5] Minor syntax problems (#9445)

> 2. [`<cmyk-component>`](https://drafts.csswg.org/css-color-5/#typedef-cmyk-component) is missing `none` (also applies to the `<alpha-value>` of `device-cmyk()`).

At this point, we should probably define tokens for color components and use those instead of repeating them in component definitions, which is error prone.

I.e.:

```
<color-component-percentage>: <percentage> | none
<color-component-number>: <number> | <percentage> | none
<color-component-angle>: <angle> | <percentage> | none
```

Legacy ones can probably stay as-is.

Agreed to all other remarks as well. Would you like to send a PR for 1, 3, 4 or should I (or @svgeesus) make the changes? 


> 4\. `<rectangular-color-space>` is defined in [CSS Color 4](https://drafts.csswg.org/css-color-4/#typedef-rectangular-color-space) with a wider range of values than in [CSS Color 5](https://drafts.csswg.org/css-color-5/#typedef-rectangular-color-space).

These kinds of things crop up so frequently that I'm starting to think Bikeshed needs some kind of templating/abstraction mechanism. Thoughts, @tabatkins ?

-- 
GitHub Notification of comment by LeaVerou
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9445#issuecomment-1750799240 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 6 October 2023 14:42:20 UTC