- From: Lea Verou via GitHub <sysbot+gh@w3.org>
- Date: Mon, 20 Jan 2025 18:45:45 +0000
- To: public-css-archive@w3.org
Happy to generalize it to the version with weights too, though I do think it's somewhat less intuitive. > Yes that can work, though I would maybe call this color picking rather than mixing/interpolating. Note that this doesn't just affect `color-mix()`. What would you call it for `calc-mix()`? Length picking? > However, I think forcing equidistant positions may be a bit inflexible. Just like gradients, I suspect that authors will ask to be able to assign colors at a custom percentage position, or even a range. I completely agree, but equidistant is fine for an MVP — we can add positions later. Far, far easier to add intermediate color stops to fake the lack of positions than to deal with a quadratic number of nested calls. > But these positions could be confused with mixing weights, so I would prefer a different function name. I agree `*-mix()` is unfortunately named, but I don't feel as strongly about it, and would definitely not want to hold up the feature because of that. However, whatever name we go with should be the one for the 2 argument case as well. Perhaps `*-scale()`? `color-scale()`, `calc-scale()` etc. -- GitHub Notification of comment by LeaVerou Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11530#issuecomment-2603063730 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 20 January 2025 18:45:46 UTC