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

🤔 I need to check why my implementation works the way it does and why it matches WebKit.

Maybe a simple misreading of : 

> is resolved to a <<number>> of degrees
(which is the [=canonical unit=])

https://drafts.csswg.org/css-values-4/#angles

> All [<angle>](https://drafts.csswg.org/css-values-4/#angle-value) units are [compatible](https://drafts.csswg.org/css-values-4/#compatible-units), and [deg](https://drafts.csswg.org/css-values-4/#deg) is their [canonical unit](https://drafts.csswg.org/css-values-4/#canonical-unit).

---------

Could be an issue that the canonical form of `hue`, which is of type `<angle>`, is a number with an implied unit of degrees?

The type `<angle>` itself has a canonical unit of degrees.

I might be thinking too much in terms of CSS as a source code.
Maybe this isn't an issue in actual engines.

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


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

Received on Thursday, 1 June 2023 18:04:46 UTC