Re: [csswg-drafts] [css-color-5] `color-scale()` for interpolating across multiple colors (#10034)

As we noticed privately, I posted essentially the exact same idea just a few hours prior to yours (decent chance we overlapped in authoring the texts!) in <https://github.com/w3c/csswg-drafts/issues/9992#issuecomment-1979797500>.

Notable differences are:

1. No implicit stop positions in my proposal; you do have to manually specify every stop. This is important for...
2. Ability to generate a scale from an existing scale, adding/overriding stops in the input scale.

If stops can have an implicit position, then you have to rely on numeric precision to allow overriding to work. Like, given `0 red, orange, yellow, 100 green`, if you wanted to override the `orange` stop you'd have to write `calc(100 / 3) salmon` and *hope* it worked.

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


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

Received on Wednesday, 6 March 2024 20:33:07 UTC