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)

While I agree with your position on preserving the full precision of the specified color channels wherever possible, I do not think this historical content prevented preserving a channel value specified as a `<percentage>`/`<angle>`, or an out of range `<alpha-value>`, in `ok?lab()`, `ok?lch()`, `color()`.

So consistency might also need to be considered now, at least for normalizing channel values to `<number>`.

---

Sorry, I figured out some time ago from reading another issue, that the *parse a CSS `<color>` value* algo is not intended for parsing `<color>` in CSS... (I will open an issue to clarify this.)

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


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

Received on Tuesday, 3 September 2024 07:20:26 UTC