Re: [csswg-drafts] [css-color-5] How should negative percentages behave in color-mix()? (#6047)

Going outside of the 0-100% range violates the mental model that this is mixing colors and makes this function behave differently than the other mixing functions (`cross-fade()` in particular). The behavior y'all are describing isn't interpolation, either, it's *arbitrary scaling and addition* of the colors. 

That has further odd implications - it implies that if the %s sum to >100%, that doesn't get rebalanced, you just get a *super vivid/light/etc* color. Similarly, %s summing to <100% just makes a very achromatic/dark/etc color. That's all pretty weird, and nothing like the concept of "mixing" we're trying to evoke here! Without a fairly compelling use-case for this, I'm strongly against trying to generalize past the "mixing" concept.

Like the other mixing functions, %s outside of 0-100% should just be invalid at parse time.

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


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

Received on Friday, 5 March 2021 00:19:09 UTC