Skip to content

Commit f29814a

Browse files
authored
Merge pull request w3c#4746 from csstools/css-color-5/commaless-form
[css-color-5] change examples to comma-less form No IPR issues, this is just purging commas!
2 parents bef4d67 + 780c5f7 commit f29814a

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
@@ -440,7 +440,7 @@ Adjusting colors: the ''color-adjust'' function {#coloradjust}
440440
* <span class="swatch" style="--color: peru"></span> peru (#CD853F) is lch(62.2532% 54.0114 63.6769)
441441
* adjusted lightness is 62.2532% - 20% = 42.2532%
442442
* adjusted result is lch(42.2532% 54.0114 63.6769)
443-
* which is <span class="swatch" style="--color: rgb(57.58%, 32.47%, 3.82%)"></span> rgb(57.58%, 32.47%, 3.82%)
443+
* which is <span class="swatch" style="--color: rgb(57.58% 32.47% 3.82%)"></span> rgb(57.58% 32.47% 3.82%)
444444
</div>
445445

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

577577
<div class="example">
578578
''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.
579-
The result is <span class="swatch" style="--color: rgb(57.58%, 32.47%, 3.82%)"> </span> lch(49.80256% 54.0114 63.6769)
579+
The result is <span class="swatch" style="--color: rgb(57.58% 32.47% 3.82%)"> </span> lch(49.80256% 54.0114 63.6769)
580580
</div>
581581

582582
<div class="example">
583583
Fully desaturating a color to gray, keeping the exact same lightness:
584584

585585
<pre>
586586
--mycolor: <span class="swatch" style="--color: orchid"></span> orchid;
587-
// orchid is lch(62.753% 62.571, 326.973)
587+
// orchid is lch(62.753% 62.571 326.973)
588588
--mygray: <span class="swatch" style="--color: rgb(59.515% 59.515% 59.515%)"></span> lch(from var(--mycolor) l 0 h)
589589
// mygray is lch(62.753% 0 326.973) which is rgb(59.515% 59.515% 59.515%)
590590
</pre>

0 commit comments

Comments
 (0)