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

> I'm mixing in the RGB space, so I think it's reasonable to assume that the results should be predictable from the RGB data. ^_^ Even if I was thinking in terms of hue, I'd definitely expect removing 20% of a pretty vivid red to make the hue budge by more than 3deg; that's a barely-detectable shift.

The more alike they are, the less it'll move. If you do `color(srgb, red, red -20%)`, you'll get `red`. Because then you're using 120% of the other `red` even though you are using -20% of the other red. But I think the "120% of the of the other" isn't the right description. You are interpolating, so when you are interpolating between two points that are the same point, you get a dot, not a line. So, no matter where you move on that line, it's `red`.




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


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

Received on Thursday, 11 March 2021 03:32:04 UTC