Re: [csswg-drafts] [css-color-4] How to handle infinite values in color functions? (#10507)

I agree that coercing values to infinity is going to cause no end of problems with color math; most color spaces are not designed to cope with such extreme values.

@tabatkins why are we doing this, again?

> Clarification on how to handle infinite values has already been asked in #8629, which was resolved with _no further change_ because _if you put an infinite calculation into an `rgba()`, the behavior is well-defined: clamp to the allowed range_.

For color spaces are clamped, yes. Most are not, including `color(srgb ...)` and `oklab()` and so on.

I just re-opened #8629 because the WG discussion apparently consisted of @tabatkins  asserting that it was fine (for `rgba()`) and thus fine everywhere else.

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


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

Received on Friday, 28 June 2024 18:32:27 UTC