Re: [csswg-drafts] [css-color-5] comma-separated syntax clarification (#4738)

1. What you are seeing is an attempt to use the [Bikeshed](https://tabatkins.github.io/bikeshed/) (our spec preprocessor) [autolink syntax](https://tabatkins.github.io/bikeshed/#dfn-autolink) with [alternate link text](https://tabatkins.github.io/bikeshed/#autolink-inside). It hasn't worked, which is why you are seeing what you see. Had it worked, you would see 

```
color-adjust() = color-adjust( <color> [ color-function <colorspace>? ]?] )
```

and `color-function` would be a link to the list of color functions.

2. The comma between `peru` and `lightness` is an error in the example. Those two are not alternates so should not use a comma.  It will be possible to use multiple functions, but they are also not alternates so won't use a comma either.

(BTW this is why CSS Color 4 dropped the commas in, for example, `rgb(r%, g%, b%)` compared to CSS Color 3 and earlier)

3. `color-contrast` take a comma-separated list of alternates as the second argument.  For `color-mix` see [color-mix to allow more than two colors?](https://github.com/w3c/csswg-drafts/issues/4711)

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

Received on Tuesday, 4 February 2020 20:47:35 UTC