- From: weinig via GitHub <sysbot+gh@w3.org>
- Date: Sat, 27 Feb 2021 19:15:43 +0000
- To: public-css-archive@w3.org
weinig has just created a new issue for https://github.com/w3c/csswg-drafts:
== [css-color-5] Should there be a comma between mix-components in color-mix()? ==
In CSS Color 5's color-mix() function, https://drafts.csswg.org/css-color-5/#color-mix, should there be a comma between mix-components? For example, which of the following is correct:
```css
color-mix(lch, red 40%, blue);
```
or
```css
color-mix(lch, red 40% blue);
```
The grammar indicates no comma:
```
color-mix() = color-mix(<colorspace>?, <mix-component>#{2})
<mix-component> = <color> [ <percentage> | <color-adjuster>+ ]?
```
but all the examples have commas.
I personally think the comma makes it more readable.
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6049 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 27 February 2021 19:15:44 UTC