[csswg-drafts] [css-color-4] Incorrect description on preprocessing hue angles for interpolation (#8838)

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

== [css-color-4] Incorrect description on preprocessing hue angles for interpolation ==
The [Hue Interpolation](https://drafts.csswg.org/css-color/#hue-interpolation) section says:

> Both angles and their difference need to be constrained to [0, 360] prior to interpolation. To do this, the minimum number of turns that fit in the lesser angle is added or subtracted from both angles, bringing the lesser angle into the range [0,360); and if the difference between them is greater than 360° then the minimum number of turns to bring the difference into the range [0,360] is further subtracted from the greater angle.

However, the angle pair <code>(θ<sub>1</sub>, θ<sub>2</sub>) = (40deg, 400deg)</code> passes the preprocessing steps without being modified, leaving with <code>θ<sub>2</sub> > 360deg</code>.

Based on the four algorithms described in this section, it seems that only the lesser of the two angles needs to be in `[0deg, 360deg)` (and the difference be in `[0deg, 360deg]`).

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8838 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 15:55:57 UTC