Re: [csswg-drafts] [css-color-5] How should missing (`none`) components work with calc() on named components in the relative color syntax (#6920)

I think this is [already explicit](https://drafts.csswg.org/css-color-4/#missing):

> If a color with a missing component is interpolated with another color, the missing component is treated as having the other color’s component value. If both colors are missing the given component, the interpolated color will also be missing that component.

> For all other purposes, a missing component behaves as a zero value, in the appropriate unit for that component: 0, 0%, or 0deg. This includes rendering the color directly, converting it to another color space, etc.

There is no "other color" here so we have `lab(0% 0 0)` and 0 / 2 = 0

However, in your example the color starts as Lab and remains as Lab so "converting it to another color space" does not apply. Bur "etc" could usefully change to "performing computations on the color component values, etc"

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


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

Received on Wednesday, 29 December 2021 20:51:12 UTC