Re: [csswg-drafts] [css-color-4] Computed value and serialization of `Infinity` and `NaN` in color functions (#8629)

If we decide these are valid colors, then as far as I understand it:
- At parse time: all things equivalent to `NaN` are serialized as `calc(NaN)`, and infinity is serialized as `calc(infinity)` or `calc(-infinity)`
- At computed value time: all `NaN`s become zero. Infinity remains infinity unless it expressing a clamped value, in which case it becomes the maximum possible value in that range. Negative infinity does the same, going to the minimum possible value.

Is that, in general, correct? If so, I'll start adding more test cases to wpt.

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


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

Received on Wednesday, 31 May 2023 13:46:21 UTC