Re: [csswg-drafts] [css-color-hdr] How should checking for percentages summing to 0 work in `dynamic-range-limit-mix()` and `color-mix()` when calc() is used? (#11678)

I updated the issue title because a lot of the discussion has been about `color-mix()` and it is hard to disentangle into a separate issue.

So, per WG resolution, the sentence in Color 5 about zero being invalid has been removed. That means we continue on to [step 6](https://drafts.csswg.org/css-color-5/#color-mix-percent-norm):

> Otherwise, if both are provided and add up to less than 100%, the sum is saved as an alpha multiplier. They are then scaled accordingly so that they add up to 100%.

That is going to need to be altered because, while we now have an alpha multiplier (zero), no possible scaling will make `p1` and `p2` sum to 100. Which is fine because we can just return the result, without any interpolation, in that corner case.

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


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

Received on Wednesday, 26 March 2025 19:08:40 UTC