W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2021

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

From: carlosame via GitHub <sysbot+gh@w3.org>
Date: Fri, 29 Jan 2021 15:38:24 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-769878443-1611934703-sysbot+gh@w3.org>
> 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

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:38 UTC