Skip to content

Commit f6a400a

Browse files
committed
[css-color] bikeshed linking fixes, hopefully
1 parent 946938b commit f6a400a

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

css-color-4/Overview.bs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4503,7 +4503,7 @@ Interpolating with alpha</h3>
45034503
[32.102% 53.61 337.7].
45044504

45054505
The midpoint of linearly interpolating these,
4506-
along the shorter hue arc (the default) would be
4506+
along the ''shorter'' hue arc (the default) would be
45074507
[29.4365% 40.563 31.82]
45084508
which, with an alpha value of 0.5,
45094509
is <span class="swatch" style="--color: rgb(83.918% 44.583% 0% / 0.5)"></span> lch(58.873% 81.126 63.64) / 0.5)
@@ -4535,7 +4535,7 @@ Hue interpolation</h3>
45354535
then for interpolation, NaN is replaced
45364536
by the value 0 for both angles.
45374537

4538-
<h4 id="hue-shorter">''shorter''</h4>
4538+
<h4 id="hue-shorter"><dfn export>shorter</dfn></h4>
45394539

45404540
Angles are adjusted so that |θ₂ - θ₁| ∈ [-180, 180]. In pseudo-Javascript:
45414541
<pre>
@@ -4547,7 +4547,7 @@ Hue interpolation</h3>
45474547
}
45484548
</pre>
45494549

4550-
<h4 id="hue-longer">''longer''</h4>
4550+
<h4 id="hue-longer"><dfn export>longer</dfn></h4>
45514551

45524552
Angles are adjusted so that |θ₂ - θ₁| ∈ {0, [180, 360)}. In pseudo-Javascript:
45534553
<pre>
@@ -4559,7 +4559,7 @@ Hue interpolation</h3>
45594559
}
45604560
</pre>
45614561

4562-
<h4 id="hue-increasing">''increasing''</h4>
4562+
<h4 id="hue-increasing"><dfn export>increasing</dfn></h4>
45634563

45644564
Angles are adjusted so that |θ₂ - θ₁| ∈ [0, 360). In pseudo-Javascript:
45654565
<pre>
@@ -4568,7 +4568,7 @@ Hue interpolation</h3>
45684568
}
45694569
</pre>
45704570

4571-
<h4 id="hue-decreasing">''decreasing''</h4>
4571+
<h4 id="hue-decreasing"><dfn export>decreasing</dfn></h4>
45724572

45734573
Angles are adjusted so that |θ₂ - θ₁| ∈ (-360, 0]. In pseudo-Javascript:
45744574
<pre>
@@ -4577,7 +4577,7 @@ Hue interpolation</h3>
45774577
}
45784578
</pre>
45794579

4580-
<h4 id="hue-specified">''specified''</h4>
4580+
<h4 id="hue-specified"><dfn export>specified</dfn></h4>
45814581

45824582
No fixup is performed. Angles are interpolated in the same way as every other component.
45834583

css-color-5/Overview.bs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Mixing colors: the ''color-mix()'' function {#color-mix}
126126

127127
<pre class='prod'>
128128
<dfn>color-mix()</dfn> = color-mix( in <<color-space>> , [ <<color>> && <<percentage [0,100]>>? ]#{2} <<hue-adjuster>>?)
129-
<dfn>&lt;hue-adjuster></dfn> = shorter | longer | increasing | decreasing | specified
129+
<dfn>&lt;hue-adjuster></dfn> = ''shorter'' | ''longer'' | ''increasing'' | ''decreasing'' | ''specified''
130130
131131
</pre>
132132

@@ -180,7 +180,17 @@ After normalizing both percentages, the result is produced via the following alg
180180
If the specified color space has a smaller gamut
181181
than the one in which the color to be adjusted is specified,
182182
gamut mapping will occur.
183-
2. Colors are then <a href="../css-color-4/#interpolation">interpolated in the specified color space</a>.
183+
2. Colors are then interpolated in the specified color space,
184+
as described in [[css-color-4#interpolation]]. If the specified color space is a ''cylindrical-polar-color'' space,
185+
then the <<hue-adjuster>> controls the
186+
interpolation of hue, as described in
187+
[[css-color-4#hue-interpolation]].
188+
If no <<hue-adjuster>> is specified, it is as if
189+
''shorter'' had been specified.
190+
If the specified colorspace is a
191+
''rectangular-orthogonal-color'' space,
192+
then specifying a <<hue-adjuster>> is not an error,
193+
but has no effect.
184194
3. If an alpha multiplier was produced during percentage normalization,
185195
the alpha component of the interpolated result is multiplied
186196
by the alpha multiplier.

0 commit comments

Comments
 (0)