- From: Chris Lilley via GitHub <sysbot+gh@w3.org>
- Date: Thu, 11 Mar 2021 15:26:37 +0000
- To: public-css-archive@w3.org
> `color-mix(rgb, rgb(240 0 240), rgb(230 0 0) -20%)` gives a result that is _more red_ than either argument. Yes, _of course_. You have a mix line going from the first color (a magenta) to the second color (a red) and your mix point is past the red ie more red. This is basically how addition and subtraction work. Subtraction is the same as addition with a negative number; addition is the same as subtraction with a negative number. > (After clamping, the result is just `rgb(242 0 255)`.) Per-component clamping is dumb unless the oog color is really close to the gamut boundary, and the spec does not recommend it as a gamut mapping method. Otherwise, the hue can radically change. -- GitHub Notification of comment by svgeesus Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6047#issuecomment-796818001 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 15:26:40 UTC