Skip to content

Commit f461328

Browse files
committed
[css-color-5] Fix examples to be up to date with current syntax
1 parent cf3031f commit f461328

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

css-color-5/Overview.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ and a percentage of 100% returns the same color converted to the specified color
156156
This example produces a mixture of 40% <span class="swatch" style="--color: peru"></span> peru
157157
and 60% <span class="swatch" style="--color: lightgoldenrod"></span> lightgoldenrod.
158158

159-
<pre class="lang-css">color-mix(in lch peru 40% lightgoldenrod)</pre>
159+
<pre class="lang-css">color-mix(in lch, peru 40%, lightgoldenrod)</pre>
160160

161161
The mixing is done in ''lch()'' colorspace.
162162
Here is a top-down view, looking along the neutral L axis:
@@ -192,7 +192,7 @@ and a percentage of 100% returns the same color converted to the specified color
192192
keeps the intermediate colors
193193
as saturated as the endpoint colors.
194194

195-
<pre class="lang-css">color-mix(teal 65% olive in lch);</pre>
195+
<pre class="lang-css">color-mix(in lch, teal 65%, olive);</pre>
196196

197197
<figure>
198198
<img src="images/CH-mixing3.svg" style="width: 50vmin">

0 commit comments

Comments
 (0)