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

weinig has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-color-4] Serialization rules for hue component of lch() and oklch() ==
It was brought to my attention in https://github.com/w3c/csswg-drafts/issues/7750 that in CSS Color 4 the <hue> is is defined with the following:

```
This number is not constrained to the range [0,360] but is unbounded. Certain operations, such as hue interpolation, may normalize the hue angle during calculations.
```
(https://www.w3.org/TR/css-color-4/#hue-syntax)


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

It would be good to clarify the intent and perhaps add some examples of hue > 360 and hue < 0 getting serialized.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7782 using your GitHub account


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

Received on Friday, 23 September 2022 01:46:13 UTC