Re: [csswg-drafts] [css-color-5] Should colors nested in a parent color function (RCS, color-mix, light-dark, color-contrast) serialize in their most precision saving form (#10328)

Oh sorry about that. 

Fwiw, when I came back to this suggestion, I was concerned about `540` becoming `60` instead of `180` in `hsl(from hsl(540deg 100% 50%) h / 3 100% 50%)`, which is the outcome in Chrome (did not check other browsers) whereas the spec says:

  > When relative color syntax is used, color component values, whether directly specified or arising from color space conversion, are not clamped to the reference ranges but are retained as-is.

I do not remember if this has been discussed before and if it is intentional.

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


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

Received on Monday, 17 March 2025 14:42:05 UTC