- From: Romain Menke via GitHub <sysbot+gh@w3.org>
- Date: Wed, 22 Mar 2023 09:32:59 +0000
- To: public-css-archive@w3.org
> 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.)
Also unsure.
Consistency would be nice, but I can imagine that this is very sensitive to implementation details.
In our implementation for the `a`/`b` component :
- a very large but finite number: `white`
- positive **and** negative infinite: `black`
[`color.js`](https://colorjs.io/notebook/) seems to produce white and blue after gamut mapping. But I am never sure if I am using that library correctly.
```js
let color = new Color("lab(50% 0 0)");
color.coords[1] = Infinity
color
color.toGamut('srgb')
```
<img width="991" alt="Screenshot 2023-03-22 at 10 26 36" src="https://user-images.githubusercontent.com/11521496/226858802-5c4961d8-822c-470a-bad5-75dc16274db5.png">
--
GitHub Notification of comment by romainmenke
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8629#issuecomment-1479206139 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 22 March 2023 09:33:01 UTC