Re: [csswg-drafts] [css-values-5] Accept more than 2 values in `*-mix(<progress>, ...)` and `progress()` notations (#11530)

The CSS Working Group just discussed ``[css-values-5] Accept more than 2 values in `*-mix(<progress>, ...)` and `progress()` notations``, and agreed to the following:

* `RESOLVED: Update color-mix() to accept N arguments.`

<details><summary>The full IRC log of that discussion</summary>
&lt;fantasai> TabAtkins: This was about allowing more than 2 values to be mixed together.<br>
&lt;fantasai> TabAtkins: resolution from https://github.com/w3c/csswg-drafts/issues/6245#issuecomment-2685746280 addresses this request<br>
&lt;oriol> q+<br>
&lt;astearns> ack oriol<br>
&lt;fantasai> TabAtkins: Will need edits to colors to allow color-mix() to have more than 2 values<br>
&lt;fantasai> oriol: When we were discussing what value should be with multiple values<br>
&lt;fantasai> oriol: Lea was saying you would pick the two values and interpolate them<br>
&lt;fantasai> oriol: another option would be weighted value among all values<br>
&lt;fantasai> oriol: I'm not sure how these map<br>
&lt;fantasai> TabAtkins: mix() all do weighted average, and map() does chained interpolation pairs<br>
&lt;fantasai> ChrisL: Not totally clear that I understand about chained pairs<br>
&lt;fantasai> ChrisL: color-mix() says if you don't specify either you have 50%<br>
&lt;fantasai> ChrisL: you want to allow more than 2?<br>
&lt;fantasai> ChrisL: if none is specified, you divide 100% by number?<br>
&lt;fantasai> lea: yep<br>
&lt;fantasai> ChrisL: Specify some but not all?<br>
&lt;fantasai> TabAtkins: Split remainder among unspecified ones<br>
&lt;fantasai> lea: and scale down sums above 100%<br>
&lt;fantasai> ChrisL: will need to expand tests<br>
&lt;fantasai> lea: expand but not change<br>
&lt;TabAtkins> fantasai: should we keep this open to track edits for color-mix()?<br>
&lt;fantasai> astearns: objections to updating color-mix() to match the plan for other mix() functions?<br>
&lt;fantasai> RESOLVED: Update color-mix() to accept N arguments.<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11530#issuecomment-2770541161 using your GitHub account


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

Received on Tuesday, 1 April 2025 19:57:02 UTC