Re: [csswg-drafts] [css-color-5] Commas in color-mix()? (#6066)

I won't be in today's telecon because APAC, so I'll dump my thoughts here.

I do find commas way more readable as well for what is worth.

> Ideally the colorspace could still be first or last (and eventually optional).

I'd prefer the order of arguments being as fixed as possible at least for now, actually. The stricter the grammar, the faster it's going to be to parse it, and the more we can extend it in the future without headaches. I'm thinking that there's some parallelism between the color-space argument to `color-mix()` etc and the direction argument of `linear-gradient()`, which is also only allowed at the beginning, before the color stops.

My preference would be to settle on something simple at first like `color-mix(in <colorspace>, <color> <percentage>?, <color>)`, then figure out if/how we need to extend such syntax. If we fix the position of the colorspace we can also remove the `in` keyword of course, though that's more debatable.

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


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

Received on Wednesday, 3 March 2021 16:20:47 UTC