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

> > Complexity for whom?
> 
> I think for the authors. If values outside of [0...100] are simply invalid and thus clipped, that simplifies the cognitive model of `color-mix`

I have not seen anyone confused about color transitions which can extrapolate in the way proposed, have you?

Also note that invalid and clipped are mutually exclusive solutions, not the same thing. Consider this:

```css
background: red;
background: color-mix(gray -10%, yellow);
```

If values out of range are *clipped*, then this produces a background of yellow.
If they are invalid, then the second declaration is dropped, and the background is red.

> > You are using a word in its definition here, basically saying that people's mental model of mixing is …mixing. This is a tautology. What is this mixing? How does it work?
> 
> Definition from Oxford Languages of mix:
> 
> 1. _verb_: "combine or put together to form one substance or mass."
> 2. _noun_: "two or more different qualities, things, or people placed, combined, or considered together."
> 
> These definitions supports the idea that `color-mix` is about positive combination

I wasn't being pedantic. I was looking for a more precise definition of this "mixing" that we can use in spec work, not synonyms from a thesaurus. 

I would also reiterate @svgeesus's point that the first color equivalency experiments with human subjects in the 20s and 30s were using mixing with negative percentages and the subjects seemed to be having no trouble with the concept. I will try to find a source to cite.

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


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

Received on Wednesday, 10 March 2021 21:26:54 UTC