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

Summary:

- Clamping at parse time instead of computed time should just affect specified style serialization
- wpt tests expect parse time clamping and do not match current spec
- Safari ships with clamping at parse time
- Chrome wants to ship and currently implements clamping at parse time
- Implementing clamping at computed value time means range checking and clamping has to happen every time we apply a color during style resolution, which is an implementation/performance burden

I propose to resolve on changing the spec to clamp at parse time for the components that currently are specfied to clamp at computed value time.


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


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

Received on Thursday, 5 January 2023 09:05:21 UTC