Skip to content

Commit 1368ced

Browse files
committed
[css-color-5][editorial] wpt
1 parent b6bf95a commit 1368ced

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

css-color-5/Overview.bs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,6 +1335,9 @@ the allowed [=channel keywords=] are:
13351335
* <dfn value for="lch()">alpha</dfn> is a <<number>> that corresponds to the
13361336
[=origin color's=] alpha transparency. 1.0 is equivalent to 100%.
13371337

1338+
<wpt>
1339+
relative-currentcolor-lch-01.html
1340+
</wpt>
13381341

13391342
<div class="example">
13401343
''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.
@@ -1471,6 +1474,10 @@ the allowed [=channel keywords=] are:
14711474
* <dfn value for="oklch()">alpha</dfn> is a <<number>> that corresponds to the
14721475
[=origin color's=] alpha transparency. 1.0 is equivalent to 100%.
14731476

1477+
<wpt>
1478+
relative-currentcolor-oklch-01.html
1479+
</wpt>
1480+
14741481
Because Oklch is both perceptually uniform and chroma-preserving,
14751482
and because the axes correspond to easily understood attributes of a color,
14761483
Oklch is a good choice for color manipulation.

0 commit comments

Comments
 (0)