- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Thu, 03 Apr 2025 15:45:45 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `Interpolate values between breakpoints`, and agreed to the following: * `RESOLVED: Rename the interpolation functions to *-interpolate()` <details><summary>The full IRC log of that discussion</summary> <TabAtkins> TabAtkins: we talked about this a few weeks ago. people liked -mix(), but not -map() or -scale()<br> <TabAtkins> lea: linked, we talked about interpolate, tween, range, scale<br> <TabAtkins> lea: we're looking for somethign that works for many types<br> <TabAtkins> lea: color-sacle is fine, calc-scale is fine, but image-scale is bad, and generic scale() conflicts with transforms<br> <TabAtkins> lea: i think tween() is obscure and tied to animations<br> <TabAtkins> lea: range() sounds like it returns a range<br> <TabAtkins> lea: intermediate() is as longa s interpolate().<br> <TabAtkins> lea: interpolate() is clearest, it's just long. but other than that i think it's best option<br> <oriol> q+<br> <TabAtkins> lea: so if we can't do scale() i think interpolate() is best<br> <TabAtkins> lea: confusing is worth than long<br> <kbabbitt> q+<br> <astearns> ack oriol<br> <TabAtkins> oriol: i had a minor question of what's different between mix() and interpolate()<br> <lea> TabAtkins: The mix functions do a weighted average, the interpolate functions take a sequence of values and an input value, like a gradient, and give you where your progress position landed on<br> <astearns> ack kbabbitt<br> <lea> e.g. `color-scale(30%, white, red 30%, black)` would give you red<br> <TabAtkins> kbabbitt: i like the name interpolate(). agree it's long but it's used elsewhere<br> <TabAtkins> kbabbitt: bramus pointed out we use it in color-interopolation and interpolate-size<br> <astearns> ack dbaron<br> <TabAtkins> kbabbitt: i agree clear is more important than short<br> <TabAtkins> dbaron: another idea is use the word tab just said, gradient()<br> <TabAtkins> dbaron: that's a thing people currently understand<br> <TabAtkins> TabAtkins: i think color-gradient() is a little funky<br> <dbaron> s/another idea/another idea (maybe a bad idea, but worth considering)/<br> <TabAtkins> astearns: have there been any arguments against interpolate() besides length?<br> <TabAtkins> TabAtkins: no<br> <ntim> gradient reminds me of math gradient descent<br> <oriol> q+<br> <astearns> ack oriol<br> <TabAtkins> oriol: a shorter idea, pick()?<br> <lea> `image-pick()`, `color-pick()`, `calc-pick()`<br> <lea> TabAtkins: My only worry is that it sounds like you're picking one of existing options, not interpolating<br> <TabAtkins> TabAtkins: we can just go for interpolate()<br> <TabAtkins> lea: yeah i think anything else is just unclear. saving a fe wmore characters isn't worth it<br> <TabAtkins> astearns: anyone who would prefer not to resolve on interpoltae() today?<br> <TabAtkins> ntim: what's the sytnax of this function?<br> <TabAtkins> TabAtkins: [summarizing] it's basically the linear-gradient() syntax, more or less<br> <TabAtkins> astearns: objectiosn to using interpolate()?<br> <TabAtkins> RESOLVED: Rename the interpolation functions to *-interpolate()<br> <TabAtkins> lea: is it before or after the type particle in the name?<br> <TabAtkins> TabAtkins: after, like color-mix()<br> <bramus> Yay!<br> <TabAtkins> astearns: but if yo uwant the other way, open an issue<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6245#issuecomment-2776235946 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 3 April 2025 15:45:46 UTC