Skip to content

Commit b444cdf

Browse files
committed
[css-color-4] Fix up explanatory text for angle normalization pseudocode, w3c#8838
1 parent f46b5d4 commit b444cdf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

css-color-4/Overview.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4906,7 +4906,7 @@ Hue Interpolation</h3>
49064906
<h4 id="hue-longer">
49074907
<dfn export>longer</dfn></h4>
49084908

4909-
Angles are adjusted so that |θ₂ - θ₁| ∈ {[-360, -180], [180, 360]}. In pseudo-Javascript:
4909+
Angles are adjusted so that |θ₂ - θ₁| ∈ {(-360, -180], [180, 360)}. In pseudo-Javascript:
49104910
<pre>
49114911
if (0 < θ₂ - θ₁ < 180) {
49124912
θ₁ += 360;
@@ -4919,7 +4919,7 @@ Hue Interpolation</h3>
49194919
<h4 id="hue-increasing">
49204920
<dfn export>increasing</dfn></h4>
49214921

4922-
Angles are adjusted so that |θ₂ - θ₁| ∈ [0, 360]. In pseudo-Javascript:
4922+
Angles are adjusted so that |θ₂ - θ₁| ∈ [0, 360). In pseudo-Javascript:
49234923
<pre>
49244924
if (θ₂ < θ₁) {
49254925
θ₂ += 360;
@@ -4929,7 +4929,7 @@ Hue Interpolation</h3>
49294929
<h4 id="hue-decreasing">
49304930
<dfn export>decreasing</dfn></h4>
49314931

4932-
Angles are adjusted so that |θ₂ - θ₁| ∈ [-360, 0]. In pseudo-Javascript:
4932+
Angles are adjusted so that |θ₂ - θ₁| ∈ (-360, 0]. In pseudo-Javascript:
49334933
<pre>
49344934
if (θ₁ < θ₂) {
49354935
θ₁ += 360;

0 commit comments

Comments
 (0)