Re: [csswg-drafts] [css-values] Abandon mix()? (#9343)

> In aspect-ratio, mix() allows the nice logarithmic interpolation of ratios

Sure, but (a) the interpolated result is completely expressible as a number, and (b) you can reproduce it by hand with `log()` and `exp()` functions: `aspect-ratio: exp(log(1) * p + log(9) * (1 - p))` (or `exp(calc-mix(p, log(1), log(9)))` if you want).

If we think that exposing a *convenient shorthand* for logarithmic interpolation would be useful, we can do so, but there's nothing *requiring* us to do so like the other cases we've added a *-mix() for. (Well, `calc-mix()` is just a convenience shorthand too, but it justified itself well.)

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


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

Received on Thursday, 30 November 2023 01:17:55 UTC