Skip to content

Commit 8f2f09b

Browse files
committed
remove relative gray following #4621
1 parent ec4ee8b commit 8f2f09b

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

css-color-5/Overview.bs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -329,19 +329,3 @@ When an origin color is present, the following keywords can also be used in this
329329
The result is <span class="swatch" style="--color: rgb(57.58%, 32.47%, 3.82%)"> </span> lch(49.80256% 54.0114 63.6769)
330330
</div>
331331

332-
<h4>Relative grayscale colors</h4>
333-
334-
The grammar of the ''gray()'' function is extended as follows:
335-
336-
<pre class='prod'>
337-
<dfn>gray()</dfn> = gray([from <<color>>]? <<number>> [ / <<alpha-value>> ]? )
338-
</pre>
339-
340-
When an origin color is present, the following keywords can also be used in this function (provided the end result conforms to the expected type for the parameter) and correspond to:
341-
342-
- 'l' is a <<percentage>> that corresponds to the origin color's CIE Lightness
343-
- 'alpha' is a <<percentage>> that corresponds to the origin color's alpha transparency
344-
345-
<div class="example">
346-
''gray(from var(--base-color) l)'' produces a grayscale version of ''var(--base-color)'' with the same lightness.
347-
</div>

0 commit comments

Comments
 (0)