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)

I am not sure my feedback is expected.

  > numbers and percentages serializing as numbers,
  > angles serializing as canonicalized angles in degrees,

I expected angles as numbers , like in absolute color functions today.

  > calc() serializing in its simplified form

*math function* is more generic than `calc()`.

  > followed (if the alpha component is non-unity)
  > by " / " and the alpha component **as specified**
  > (using the same rules as the color channel arguments, but clamped)

I am not sure if this means that percentage alpha should be preserved as a percentage, or resolved to a number, like for absolute color functions today.

  > I don't see value in preserving a hue of 36000 degrees

`hsl(from hsl(540 ...) h / 3 ...)` producing a final hue of `60` is definitely not intuitive to me. `540` might come from another calculation. I have no use case in mind.

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


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

Received on Tuesday, 9 September 2025 19:13:38 UTC