- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Tue, 19 May 2020 19:05:09 +0000
- To: public-css-archive@w3.org
Specifically, the grammar should be: ``` color-mix( <<colorspace>>?, [ <<color-adjuster>>? && <<color>> ]# ) <<color-adjuster>> = <<percentage>> | hue(<<percentage>>) | ... ``` I moved the colorspace to the front, as that's more standard practice when a function takes both options and a list (see the shape or gradient functions). The color-adjusters used must be consistent within a specific colorspace; you can't adjust "hue" and "red" at the same time. The colorspace in play is inferred from the adjusters used, defaulting to lch if possible. A plain % is shorthand for applying all the relevant adjusters from that colorspace. N-ary mixing is then applied per-adjuster, using the same logic as cross-fade for omitted adjusters (taking the leftover %, and distributing it equally among the unspecified items). -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4711#issuecomment-631022384 using your GitHub account
Received on Tuesday, 19 May 2020 19:05:11 UTC