Skip to content

Commit 17d0417

Browse files
committed
[css-color-4] Correct 'longer' hue adjust, for identical colors. Fix w3c#7147
1 parent 8c1fe16 commit 17d0417

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

css-color-4/Overview.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5138,11 +5138,11 @@ Hue interpolation</h3>
51385138
Angles are adjusted so that |θ₂ - θ₁| ∈ {0, [180, 360)}. In pseudo-Javascript:
51395139
<pre>
51405140
if (0 < θ₂ - θ₁ < 180) {
5141-
θ₁ += 360;
5142-
}
5143-
else if (-180 < θ₂ - θ₁ < 0) {
51445141
θ₂ += 360;
51455142
}
5143+
else if (-180 < θ₂ - θ₁ <= 0) {
5144+
θ₁ += 360;
5145+
}
51465146
</pre>
51475147

51485148
<h4 id="hue-increasing"><dfn export>increasing</dfn></h4>

0 commit comments

Comments
 (0)