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

The tests were merged : https://github.com/web-platform-tests/wpt/pull/39137

------

That only leaves the open question of how to handle enormous values :

> Rendering is just a consequence of the "clamp it to your actual allowed range" behavior that V&U specifies for infinite (and other arbitrarily-large finite) values. I'm not sure what the actual behavior of a ginormous a value should be, but whatever it is, that's the correct rendering. (I suspect white? But I have no actual knowledge here.)

I suspect the right value will just fall out of implementations that are free of bugs but maybe good to have a few examples/tests?

@svgeesus Do you know or have an opinion on how something like `lab(50% calc(Infinity) 0)` which has an absurdly large `a` should behave?

_Anyone writing `lab(50% calc(Infinity) 0)` manually should expect bogus results, but `infinity` can be the result of a calculation._

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


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

Received on Monday, 17 April 2023 17:22:05 UTC