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

As a point of experience, though no real thought out opinion, when implementing support for OKLab in WebKit this week, this bit me briefly (all the resulting colors were very extremely white) and needed to add a divide by 100.

The only real downside of using a percentage here in my mind is if it trips users up when pasting in component values from another tool (say, something like https://colorjs.io/apps/convert/?color=lime&precision=4 which uses the unit notation).

One concrete thing you might want to consider is updating the sample code to call out this difference.

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


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

Received on Saturday, 27 November 2021 19:40:04 UTC