Re: [csswg-drafts] [css-color-4] Clarify that `none` is preserved in calculations (#10211)

As I mentioned in the call, making `none` infectious is actually _worse_ than converting to 0. Consider e.g. `oklch(clamp(0.5, none, 0.6) 0.05 180)`. By coercing `none` to `0`, the constraint that lightness needs to be within 0.5 - 0.6 is maintained, whereas by making the whole component `none` it is not, potentially leading to a11y issues.

Worst case we can solve issues like what @romainmenke pointed out by allowing the coercion to `0` to happen in more cases, but infectiousness is out of the question.

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


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

Received on Tuesday, 30 April 2024 14:02:11 UTC