Re: [csswg-drafts] [css-color] Clamping alpha at computed-value time vs parsing time (#7677)

This is also an issue for lightness. Per the current spec, lab()/lch(), for instance, should clamp negative lightness to 0 at computed value time, not specified/parse time: https://drafts.csswg.org/css-color/#specifying-lab-lch

There are several tests in e.g. https://wpt.fyi/results/css/css-color/parsing/color-valid-lab.html that expects clamping at parse time and conflicts with the current spec.

Also, both WebKit and Blink currently clamp at parse time.


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


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

Received on Friday, 2 December 2022 18:28:46 UTC