Re: [csswg-drafts] [css-color-5] Clarification on scaling ranges of color keyword parameters for relative color (#9094)

> Some web platform tests assume that an alpha of 1, when passed to the lightness channel of lab/lch, should result in a lightness value of 100:

Yeah there is no basis for this, and the spec  [warns specifically about assuming this](https://drafts.csswg.org/css-color-5/#ex-no-percentage-magic):

> Beware when using components outside their normal position; when percentages are resolved, there is no "magic scaling" to account for the changed position.
> https://drafts.csswg.org/css-color-5/#ex-no-percentage-magic

So those WPT are wrong.



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


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

Received on Thursday, 20 July 2023 10:29:45 UTC