Re: [csswg-drafts] [css-color-5] Examples 11, 20, 24, ... mix deg and number values (#8839)

Yeah that is incorrect. Hue angles in CSS are of type `<angle>` and their [canonical unit](https://www.w3.org/TR/css-values-4/#canonical-unit) is [degrees](https://www.w3.org/TR/css-values-4/#angles), so in RCH `h` will resolved to an angle in degrees.

Angles in different units can be combined in `calc()` so you can add 37deg and 0.2turn for example.

Bare numbers (while allowed in CSS Color syntax, where they mean degrees) will resolve to an angle in deg when the `h` is used in RCS.

Sadly, bare numbers apart from `0` are not allowed in `calc()` as degrees. So yes the examples are incorrect.



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


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

Received on Saturday, 13 May 2023 17:08:03 UTC