Re: [csswg-drafts] [css-color-4] Clarify how color() values with fallback should serialize (#5904)

> fallback examples fixed to use the actual grammar

The syntax is supposed to be this:
```javascript
color() = color( [ [<ident> | <dashed-ident>] [ <number-percentage>+ | <string> ] [ / <alpha-value> ]? ]# , <color>? )
```
where "Each argument represents either an invalid color, as described below, or a valid color", so
```javascript
color(prophoto-rgb 0.4835 0.9167 0.2188, display-p3 0.3499 0.9800 0.1399, rgb(33.44% 96.68% 21.07%))
```
seems correct.

If it is not, then the above grammar should be modified as well. Also, the current one probably meant:
```javascript
color() = color( [ [<ident> | <dashed-ident>] [ <number-percentage>+ | <string> ] [ / <alpha-value> ]? ]# [, <color>]? )
```


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


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

Received on Friday, 29 January 2021 15:38:26 UTC