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

> At parse time:

More specifically, *all* math functions serialize as some variety of math function when they're specified values, regardless of what's inside them. If they've been able to simplify down to a single value, they'll serialize with a `calc()` around them. (Browsers have, generally, not done this correctly in many places, colors being a notable example.)

> At computed value time:

Yup, correct. (And note, just for completeness, that the `infinity` keywords have to still be serialized with a `calc()` wrapper, because they're only valid as keywords *inside a calculation*.)

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8629#issuecomment-1570732979 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 18:41:48 UTC