Skip to content

Commit c30f441

Browse files
committed
[css-color-5] Ceterum censeo Comma esse delendam
1 parent a395cea commit c30f441

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

css-color-5/Overview.bs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Mixing colors: the ''color-mix'' function {#colormix}
8686
(and thus, 60% of the lightness of the blue).
8787
The chroma and hue of the green are left unchanged.
8888

89-
<pre class="lang-css">mix-color(rgb(0% 42.35% 33.33%), rgb(41.2% 69.88% 96.64%), lightness(40%));</pre>
89+
<pre class="lang-css">mix-color(rgb(0% 42.35% 33.33%) rgb(41.2% 69.88% 96.64%), lightness(40%));</pre>
9090

9191
The calculation is as follows:
9292
* <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)
@@ -104,7 +104,7 @@ Mixing colors: the ''color-mix'' function {#colormix}
104104
(and thus, 62% of that of the blue).
105105
The chroma and lightness of the red are left unchanged.
106106

107-
<pre class="lang-css">mix-color(rgb(82.02% 30.21% 35.02%), rgb(5.64% 55.94% 85.31%), hue(75.23%));</pre>
107+
<pre class="lang-css">mix-color(rgb(82.02% 30.21% 35.02%) rgb(5.64% 55.94% 85.31%) hue(75.23%));</pre>
108108

109109
The calculation is as follows:
110110
* <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)
@@ -124,7 +124,7 @@ Mixing colors: the ''color-mix'' function {#colormix}
124124
This time, the lightness is set to 68.4% and
125125
the chroma is left unchanged.
126126

127-
<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>
127+
<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>
128128

129129
The calculation is as follows:
130130
* <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)
@@ -149,7 +149,7 @@ Mixing colors: the ''color-mix'' function {#colormix}
149149
(and thus, 70% of the lightness of yellow).
150150
The chroma and hue of red are left unchanged.
151151

152-
<pre class="lang-css">mix-color(red, yellow, lightness(30%));</pre>
152+
<pre class="lang-css">mix-color(red yellow lightness(30%));</pre>
153153

154154
The calculation is as follows:
155155
* sRGB <span class="swatch" style="--color: red"></span> red (#F00) is lch(54.2917% 106.8390 40.8526)
@@ -182,7 +182,7 @@ which applies to all color channels.
182182
keeps the intermediate colors
183183
as saturated as the endpoint colors.
184184

185-
<pre class="lang-css">mix-color(red, yellow, 65%);</pre>
185+
<pre class="lang-css">mix-color(red yellow 65%);</pre>
186186

187187
The calculation is as follows:
188188
* sRGB <span class="swatch" style="--color: red"></span> red (#F00) is lch(54.2917% 106.8390 40.8526)
@@ -245,7 +245,7 @@ which is rgb(52.446% 45.821% 62.953%)
245245

246246
This shows a desaturated result, compared to LCH interpolation.
247247

248-
<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>
248+
<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>
249249

250250
<!-- is that right, lab() or lab ? -->
251251

@@ -365,7 +365,7 @@ Adjusting colors: the ''color-adjust'' function {#coloradjust}
365365
with the lightness being reduced by 20%.
366366
The chroma and hue of red are left unchanged.
367367

368-
<pre class="lang-css">color-adjust(peru, lightness(-20%));</pre>
368+
<pre class="lang-css">color-adjust(peru lightness(-20%));</pre>
369369

370370
The calculation is as follows:
371371
* <span class="swatch" style="--color: peru"></span> peru (#CD853F) is lch(62.2532% 54.0114 63.6769)
@@ -406,7 +406,7 @@ When an origin color is present, the following keywords can also be used in this
406406
To manipulate color channels in the sRGB colorspace:
407407

408408
<pre>
409-
rgb(from <span class="swatch" style="--color: indianred"></span> indianred, 255 g b)
409+
rgb(from <span class="swatch" style="--color: indianred"></span> indianred 255 g b)
410410
</pre>
411411

412412
This takes the sRGB value of indianred (205 92 92) and replaces the red channel with 255 to give <span class="swatch" style="--color: rgb(255 92 92)"></span> rgb(255 92 92).
@@ -432,7 +432,7 @@ When an origin color is present, the following keywords can also be used in this
432432
This adds 180 degrees to the hue angle, giving a complementary color.
433433
<pre>
434434
--accent: <span class="swatch" style="--color: lightseagreen"></span> lightseagreen;
435-
--complement: <span class="swatch" style="--color: hsl(357deg 70% 41%)"></span> hsl(from var(--accent), calc(h+180) s l);
435+
--complement: <span class="swatch" style="--color: hsl(357deg 70% 41%)"></span> hsl(from var(--accent) calc(h+180) s l);
436436
</pre>
437437
lightseagreen is hsl(177deg 70% 41%), so --complement is <span class="swatch" style="--color: hsl(357deg 70% 41%)"></span> hsl(357deg 70% 41%)
438438
</div>

0 commit comments

Comments
 (0)