Re: [csswg-drafts] [css-values] Make top-level NaN be IACVT instead of ∞ (#7067)

This is why we introduced [the `none` keyword](https://drafts.csswg.org/css-color-4/#missing) and the [`powerless component` concept](https://drafts.csswg.org/css-color-4/#powerless) in CSS Color 4 to represent things like indeterminate hue angle, because [NaN had the wrong behavior](https://github.com/w3c/csswg-drafts/issues/6107).

NaN is still used in most implementations, for doing calculations, but then the `none` keyword is used when parsing CSS syntax or serializing; and the prose says to convert it to 0 (not +∞) during colorspace conversion:

> For all other purposes, a [missing component](https://drafts.csswg.org/css-color-4/#missing-color-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, 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/7067#issuecomment-1043309561 using your GitHub account


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

Received on Thursday, 17 February 2022 19:02:22 UTC