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

I figured that author-level computations on the color channels and UA-level computations on the color channels would operate under the same rules. The *only* way to implicitly produce missing components is to do color-space conversion and get a result with powerless components, and the *only* effect of missing components is to change how interpolation works.

Importantly, doing color-space conversion on a color that already has missing components treats those components as zero, rather than specially handling them. This has implications for RCS; if we go with option 3, then if the starting color has missing components, it'll only matter if it's already in the same color-space as the RCS function; if conversion occurs, it'll treat the missing components as zero and produce a color accordingly. (Which might have missing components due to powerlessness, but that's independent of whether the starting color had missing components or not.)

I don't think it's a good idea to have the behavior care about whether the starting color is in the same color-space or not.

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


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

Received on Wednesday, 21 September 2022 23:35:15 UTC