@@ -89,7 +89,7 @@ it applies to all color channels.
8989 This example produces a mixture of 40% <span class="swatch" style="--color: peru"></span> peru
9090 and 60% <span class="swatch" style="--color: lightgoldenrod"></span> lightgoldenrod.
9191
92- <pre class="lang-css"> mix- color(peru lightgoldenrod 40%)</pre>
92+ <pre class="lang-css"> color-mix (peru lightgoldenrod 40%)</pre>
9393
9494 The mixing is done in ''lch()'' colorspace.
9595 Here is a top-down view, looking along the neutral L axis:
@@ -125,7 +125,7 @@ it applies to all color channels.
125125 keeps the intermediate colors
126126 as saturated as the endpoint colors.
127127
128- <pre class="lang-css"> mix- color(red yellow 65%);</pre>
128+ <pre class="lang-css"> color-mix (red yellow 65%);</pre>
129129
130130 <figure>
131131 <img src="images/CH-mixing3.svg" style="width: 50vmin">
@@ -167,7 +167,7 @@ are copied across from the first color.
167167 (and thus, 60% of the lightness of the blue).
168168 The chroma and hue of the green are used unchanged in the mixed result.
169169
170- <pre class="lang-css"> mix- color(rgb(0% 42.35% 33.33%) rgb(41.2% 69.88% 96.64%) lightness(40%));</pre>
170+ <pre class="lang-css"> color-mix (rgb(0% 42.35% 33.33%) rgb(41.2% 69.88% 96.64%) lightness(40%));</pre>
171171
172172 The calculation is as follows:
173173 * <span class="swatch" style="--color: rgb(0% 42.35% 33.33%)"></span> rgb(0% 42.35% 33.33%) is lch(40.083% 32.808 171.175)
@@ -185,7 +185,7 @@ are copied across from the first color.
185185 (and thus, 24.77% of that of the blue).
186186 The chroma and lightness of the red are left unchanged.
187187
188- <pre class="lang-css"> mix- color(lch(52% 58.1 22.7) lch(56% 49.1 257.1) hue(75.23%));</pre>
188+ <pre class="lang-css"> color-mix (lch(52% 58.1 22.7) lch(56% 49.1 257.1) hue(75.23%));</pre>
189189
190190 <figure>
191191 <img src="images/CH-mixing2.svg" style="width: 50vmin">
@@ -219,7 +219,7 @@ Issue(#4735): <a href="https://github.com/w3c/csswg-drafts/issues/4735">When mix
219219 This time, the lightness is set to 68.4% and
220220 the chroma is left unchanged.
221221
222- <pre class="lang-css"> mix- color(rgb(82.02% 30.21% 35.02%) rgb(5.64% 55.94% 85.31%) hue(75.23%) lightness(68.4%));</pre>
222+ <pre class="lang-css"> color-mix (rgb(82.02% 30.21% 35.02%) rgb(5.64% 55.94% 85.31%) hue(75.23%) lightness(68.4%));</pre>
223223
224224 The calculation is as follows:
225225 * <span class="swatch" style="--color: rgb(82.02% 30.21% 35.02%)"></span> rgb(82.02% 30.21% 35.02%) is lch(52% 58.1 22.7)
@@ -235,7 +235,7 @@ Issue(#4735): <a href="https://github.com/w3c/csswg-drafts/issues/4735">When mix
235235 <!-- showing out of gamut colors next -->
236236
237237
238- <!-- <img src="images/mix_red_white_lightness50.png" alt="Result of mix- color(red, white, lightness(50%)" /> -->
238+ <!-- <img src="images/mix_red_white_lightness50.png" alt="Result of color-mix (red, white, lightness(50%)" /> -->
239239
240240<div class="example">
241241 This example produces the mixture of red and yellow,
@@ -244,7 +244,7 @@ Issue(#4735): <a href="https://github.com/w3c/csswg-drafts/issues/4735">When mix
244244 (and thus, 70% of the lightness of yellow).
245245 The chroma and hue of red are left unchanged.
246246
247- <pre class="lang-css"> mix- color(red yellow lightness(30%));</pre>
247+ <pre class="lang-css"> color-mix (red yellow lightness(30%));</pre>
248248
249249 The calculation is as follows:
250250 * sRGB <span class="swatch" style="--color: red"></span> red (#F00) is lch(54.2917% 106.8390 40.8526)
@@ -259,13 +259,13 @@ Issue(#4735): <a href="https://github.com/w3c/csswg-drafts/issues/4735">When mix
259259</div>
260260
261261<!--
262- <img src="images/mix_red_yellow_lightness30.png" alt="Result of mix- color(red, yellow, lightness(30%)" />
262+ <img src="images/mix_red_yellow_lightness30.png" alt="Result of color-mix (red, yellow, lightness(30%)" />
263263 this image incorrectly shows red and yellow to be outside gamut as well, which is confusing.
264264 it also shows the result color after per-component clipping, which is not desirable -->
265265
266266
267267<!--
268- <img src="images/mix_red_yellow_65.png" alt="Result of mix- color(red, yellow, 65%" /> -->
268+ <img src="images/mix_red_yellow_65.png" alt="Result of color-mix (red, yellow, 65%" /> -->
269269
270270<!-- todo: example that specifies a different colorspace -->
271271
@@ -311,7 +311,7 @@ which is rgb(52.446% 45.821% 62.953%)
311311 because interpolation is in a stright line on the <em> a,b</em> plane
312312 and can thus pass close to the central, neutral axis.
313313
314- <pre class="lang-css"> mix- color(rgb(82.02% 30.21% 35.02%) rgb(5.64% 55.94% 85.31%) lab() a(38%) b(38%));</pre>
314+ <pre class="lang-css"> color-mix (rgb(82.02% 30.21% 35.02%) rgb(5.64% 55.94% 85.31%) lab() a(38%) b(38%));</pre>
315315
316316 <!-- is that right, lab() or lab ? -->
317317
0 commit comments