Skip to content

Commit 780c5f7

Browse files
committed
Change examples to commaless form
See https://drafts.csswg.org/css-color-4/#changes-from-20160705: > Describe previous, comma-using color syntaxes as "legacy"; change examples to commaless form
1 parent c3eb407 commit 780c5f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

css-color-5/Overview.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ Adjusting colors: the ''color-adjust'' function {#coloradjust}
403403
* <span class="swatch" style="--color: peru"></span> peru (#CD853F) is lch(62.2532% 54.0114 63.6769)
404404
* adjusted lightness is 62.2532% - 20% = 42.2532%
405405
* adjusted result is lch(42.2532% 54.0114 63.6769)
406-
* which is <span class="swatch" style="--color: rgb(57.58%, 32.47%, 3.82%)"></span> rgb(57.58%, 32.47%, 3.82%)
406+
* which is <span class="swatch" style="--color: rgb(57.58% 32.47% 3.82%)"></span> rgb(57.58% 32.47% 3.82%)
407407
</div>
408408

409409
<!-- image out of sync with example
@@ -539,15 +539,15 @@ When an origin color is present, the following keywords can also be used in this
539539

540540
<div class="example">
541541
''lch(from peru calc(l * 0.8) c h)'' produces a color that is 20% darker than <span class="swatch" style="--color: peru"></span> peru or lch(62.2532% 54.0114 63.6769), with its chroma and hue left unchanged.
542-
The result is <span class="swatch" style="--color: rgb(57.58%, 32.47%, 3.82%)"> </span> lch(49.80256% 54.0114 63.6769)
542+
The result is <span class="swatch" style="--color: rgb(57.58% 32.47% 3.82%)"> </span> lch(49.80256% 54.0114 63.6769)
543543
</div>
544544

545545
<div class="example">
546546
Fully desaturating a color to gray, keeping the exact same lightness:
547547

548548
<pre>
549549
--mycolor: <span class="swatch" style="--color: orchid"></span> orchid;
550-
// orchid is lch(62.753% 62.571, 326.973)
550+
// orchid is lch(62.753% 62.571 326.973)
551551
--mygray: <span class="swatch" style="--color: rgb(59.515% 59.515% 59.515%)"></span> lch(from var(--mycolor) l 0 h)
552552
// mygray is lch(62.753% 0 326.973) which is rgb(59.515% 59.515% 59.515%)
553553
</pre>

0 commit comments

Comments
 (0)