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

> So, importantly, dropping the "calc" so that the channels are all numbers. Why is it important that they roundtrip in this context?

Part of the reason for initially opening this issue is that dropping `calc` "breaks" the value.

- `lab(0 Infinity 0)` -> invalid
- `lab(0 calc(Infinity) 0)` -> something very pink-ish in Chrome

Serializing into an invalid value seems like a bug to me.

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


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

Received on Friday, 26 May 2023 21:32:04 UTC