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

Ah, sorry, actually the omitter logic is a touch more complicated - if you've specified any channel adjuster for a color, the omitted adjusters default to 0%. You only distribute leftover % if there's no adjuster at all.

That is, if we write `color-mix(canvas, var(--bg-color) a(100%))` to apply the variable's alpha to the `canvas` color, we want the rest of the var's adjusters to default to 0% (so you use `canvas` for all the actual color channels).

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

Received on Wednesday, 20 May 2020 16:17:55 UTC