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

The minutes-bot wasn't told the issue number for this discussion, but [here are the minutes from yesterday's call](https://lists.w3.org/Archives/Public/www-style/2021Mar/0002.html):

> How should negative percentages behave in color-mix()?
> ------------------------------------------------------
>   github: https://github.com/w3c/csswg-drafts/issues/6047
> 
>   chris: Sam Weinig who is implementing pointed out that can't do
>          negative percentages
>   chris: una said why don't we clip it 0-100%
>   chris: nobody wants this
>   chris: I can define it
>   fantasai: Can you make it invalid?
>   TabAtkins: Invalid matches behavior in other mixing functions
>   TabAtkins: We intend for it to be meaningless, so should be invalid
> 
>   RESOLVED: negative percentages are invalid in color-mix()

@LeaVerou, are you saying that we should re-open the issue and change the resolution? Because the minutes are quite clear on what we decided - negative %s are invalid (and the intention of the resolution is that >100% individual percentages are invalid, too, it just didn't get caught by the resolution text).  And the preceding discussion, similarly, said that when both colors give a % and they sum to >100%, we'll rebalance the %s to add to 100%, not just literally scale each as specified then add them together. 

The only remaining open question was about what to do when they both specified a % and they sum to <100%, because I thought there might be an argument to match cross-fade() and "fill in the remaining %" with `transparent`, you said there were problems with this, and I didn't want to take up more call time with just me being educated so I suggested we discuss it in the issue so we could decide next week.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6047#issuecomment-791600089 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 18:26:19 UTC