Skip to content

Commit 2641c47

Browse files
committed
[css-color-4] Correct hue fixup, fix w3c#8838
1 parent 3f1e98c commit 2641c47

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

css-color-4/Overview.bs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4845,16 +4845,14 @@ Hue Interpolation</h3>
48454845
Specifying a hue interpolation strategy is already part of the <<color-interpolation-method>> syntax
48464846
via the <<hue-interpolation-method>> token.
48474847

4848-
Both angles and their difference need to be constrained to [0, 360] prior to interpolation.
4848+
Both angles and their difference need to be constrained to [0, 360) prior to interpolation.
48494849
To do this, the minimum number of turns that fit in the lesser angle
48504850
is added or subtracted from both angles,
48514851
bringing the lesser angle into the range [0,360);
4852-
and if the difference between them is greater than 360&deg;
4853-
then the minimum number of turns to bring the difference into the range [0,360]
4852+
and if the difference between them is greater than or equal to 360&deg;
4853+
then the minimum number of turns to bring the difference into the range [0,360)
48544854
is further subtracted from the greater angle.
48554855

4856-
Note: Differences of 360&deg; are allowed to maintain the originally specified direction of a full turn.
4857-
48584856
Unless otherwise specified, if no specific hue interpolation algorithm is selected by the host syntax, the default is ''shorter''.
48594857

48604858
<wpt>

0 commit comments

Comments
 (0)