Re: [csswg-drafts] [css-color-4] L as `<percentage>` in `lab()` and `oklab()` (#6761)

Thanks for this perspective. I guess(?) I was fixated on [percentages resolve to 0.0 .. 1.0 except that for lab the first percentage resolves to 0.0 to 100.0](https://github.com/w3c/csswg-drafts/issues/3450#issuecomment-576037711) and overestimated the impact of this "lab exception", whereas in `color()` percentages, like everywhere else, (can, and do) simply refer to the range of components, whatever those might be.

With this interpretation of `<number-percentage>` in `color()`, is there still an impediment in allowing `<number-percentage>` in the L component of CIE/OKLab & LCh? It would mean that the percent-to-number mapping be made explicit for each color space, the same as if [they made it in the `color()` syntax](https://github.com/w3c/csswg-drafts/issues/6741) (perhaps the change is only warranted if the latter happens?). A nice-to-have for better interop.

-- 
GitHub Notification of comment by danburzo
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6761#issuecomment-951596124 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 06:14:56 UTC