[csswg-drafts] [css-color-5] Consider moving colorspace parameter in color-adjust() to beginning to match color-mix() and ease parsing (#6053)

weinig has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-color-5] Consider moving colorspace parameter in color-adjust() to beginning to match color-mix() and ease parsing ==
In the current CSS Color 5 draft's color-adjust() function, https://drafts.csswg.org/css-color-5/#coloradjust, the colorspace is argument is last, which is inconsistent with color-mix(), where it is first, and makes parsing a bit more complicated since we don't know which adjusters are allowed until after we have parsed them.

Please consider moving the colorspace to the beginning, changing the grammar from:

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

to

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

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6053 using your GitHub account


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

Received on Sunday, 28 February 2021 17:55:55 UTC