Re: [csswg-drafts] [css-color-4] Serialization rules for hue component of lch() and oklch() (#7782)

> Currently in WebKit, we normalize hues to [0, 360] for serialization, but I can't find anything that requires that in the spec.

The spec is currently silent on resolving and serializing hue in the polar forms `oklch()` and `lch()`. The issue doesn't arise for `hsl()` and `hwb()` because the original hue is lost on conversion to `rgb()`.

It should not be, and I agree with the point made in #7750 that being required to track the originally-specified hue is onerous and only makes a difference in hue interpolation with `specified`. So I would be in favor of explicit normalization to `[0, 360)` (and dropping `specified`).

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


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

Received on Monday, 3 October 2022 16:28:08 UTC