Re: [csswg-drafts] [css-values-5] Should all interpolation functions have a mixing version? (#11531)

The CSS Working Group just discussed `[css-values-5] Should all interpolation functions have a mixing version?`, and agreed to the following:

* `RESOLVED: Close as retracted by OP`

<details><summary>The full IRC log of that discussion</summary>
&lt;fantasai> TabAtkins: Lea raised this issue.<br>
&lt;fantasai> TabAtkins: We previously had give color-mix() two syntaxes, and Lea asked if we need to be consistent with other mixing and interpolation things.<br>
&lt;fantasai> TabAtkins: our conclusion was, yes, we should, all of the functions should be paired<br>
&lt;fantasai> TabAtkins: and we resolved on that in the other issue<br>
&lt;fantasai> lea: That was when they had the same function name<br>
&lt;fantasai> TabAtkins: yes. Now we have mix() matching color-mix() and map() doing new thing<br>
&lt;fantasai> TabAtkins: I think we can close this as obsoleted by the interpolation issue<br>
&lt;oriol> What's the issue for map()?<br>
&lt;fantasai> https://github.com/w3c/csswg-drafts/issues/6245<br>
&lt;fantasai> lea: This is a different issue than we discussed earlier<br>
&lt;fantasai> lea: especially now that we don't have mix() version of all things, question is do we still need mixign functions?<br>
&lt;fantasai> lea: We have color-mix() for colors, but do we need e.g. calc-mix()?<br>
&lt;miriam> q+<br>
&lt;fantasai> TabAtkins: The same motivation for mix colors at different weights, might want to do with other types of values: images, lengths, etc.<br>
&lt;fantasai> lea: so it's a weighted average<br>
&lt;fantasai> TabAtkins: exactly. mix() functions do weighted averages, and map() does interpolation scales<br>
&lt;fantasai> lea: I guess<br>
&lt;fantasai> TabAtkins: Proposal in 6245 is that all of the relevant functions have both mix() and map() variant<br>
&lt;fantasai> lea: OK, I guess fine<br>
&lt;astearns> ack miriam<br>
&lt;fantasai> miriam: Other use case requested that this helps with is being able to interpolate a font size between 2 values and follow an easing curve, so mix() gives you easing curve that you get with calc<br>
&lt;fantasai> lea: but interpolation function is different. this is separate<br>
&lt;fantasai> TabAtkins: interpolation function lets you interpolate between 2 values (possibly along a chain of values)<br>
&lt;fantasai> TabAtkins: but that's different from mix()<br>
&lt;fantasai> RESOLVED: Close as retracted by OP<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11531#issuecomment-2770531953 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:52:26 UTC