Re: [csswg-drafts] [css-color-4] Are a and b in lab( 0%, a, b ) really powerless? [css-color-4] (#6758)

Yes, excellent answer - thanks both.

We're implementing lab() / lch() support in our CSS engine. Most stuff straightforward, but a couple of things looked like errors in our implementation until I watched your presentation. The light bulb moment was this, particularly the bit about math:

>Out of gamut just means that a particular color can't be displayed (one of the components is below zero, or a bit above maximum).
>This can still be a real color, and you can still do math (like mixing) with this color, it is just out of range of a particular device.

There is wording along these lines in the `color()` section, but I think this is more general than just the color() function so maybe better in the terminology section? Also, if out-of-gamut colors can be produced that don't have physical meaning on any display it's worth mentioning that (I can easily imagine a lightness greater than 100% of the white point, but have a much harder time with lightness less than 0%)


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


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

Received on Tuesday, 26 October 2021 16:48:52 UTC