Re: [csswg-drafts] [css-color-5] Define the behavior of missing channels in the relative color syntax (#7771)

@mirisuzanne Note that the *effects* of missing channels in interpolation (defined in <https://drafts.csswg.org/css-color-4/#interpolation-missing>) aren't similar to what was suggested in this thread. In interpolation you only get a carried-thru missing channel if *both* the "to" and "from" colors carry-thru the same missing channel to the interpolation space; otherwise you take the other side's channel value.

That sort of handling can't be done with RCS anyway; if you're mixing two colors by hand with it only one of them is semantically a `<color>` in the CSS; the other would have to just be literal channel numbers.

(Note that color-mix() uses the same interpolation behavior as transitions/etc, so when mixing colors with the function *designed for* color mixing, you'll get the desired behavior.)

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


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

Received on Thursday, 22 September 2022 23:40:14 UTC