Re: [csswg-drafts] [css-color-4] statement about range of 'a' parameter in lab() appears incorrect (#12208)

I guess a more accurate statement would that `a` and `b` do not exceed that **for visible colors**. It is always possible to create imaginary colors (ones that cannot physically exist) with any arbitrary value.

The original impetus for citing the 160 value was to warn implementers away from systems which encode `a` and `b` as signed 8-bit values, thus limiting to 128. This is not enough. Of course, 8 bits is also not enough, and in general half float or float is used in practice.

WPT contains some odd colors, such as `xyz-d65(0 1 0)` which is imaginary. No real color can have zero values in XYZ.

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


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

Received on Monday, 19 May 2025 17:28:39 UTC