Re: [csswg-drafts] [css-color-5] color-mix to allow more than two colors? (#4711)

It should work just like cross-fade():

* if the %s don't add up to 100% (over or under), normalize them to 100%.
* if some %s aren't specified, add up what %s are, then distribute the *leftover* % to the unspecified ones equally (so `mix(foo 50%, bar, baz)` would be equivalent to `mix(foo 50%, bar 25%, baz 25%)`).

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

Received on Saturday, 8 February 2020 01:53:59 UTC