Skip to content

Commit 9dfabd4

Browse files
committed
[css-color-4] fix w3c#4648 gray is percentage
1 parent a5142f3 commit 9dfabd4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

css-color-4/Overview.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1940,19 +1940,19 @@ Specifying Grays: the ''gray()'' functional notation</h2>
19401940
Grays are fully desaturated colors.
19411941
The ''gray()'' functional notation simplifies specifying this common set of colors,
19421942
so that only a single numerical parameter is required,
1943-
and so that gray(50) is a visual mid-gray
1943+
and so that gray(50%) is a visual mid-gray
19441944
(perceptually equidistant between black and white).
19451945

19461946
<pre class='prod'>
1947-
<dfn>gray()</dfn> = gray( <<number>> [ / <<alpha-value>> ]? )
1947+
<dfn>gray()</dfn> = gray( <<percentage>> [ / <<alpha-value>> ]? )
19481948
</pre>
19491949

19501950
The first argument specifies the shade of gray,
19511951
equal to the CIE Lightness,
19521952
while the second optional argument specifies the alpha channel of the gray.
19531953

19541954
Note: In other words,
1955-
''gray(a / b)'' is equal to ''lab(a 0 0 / b)''.
1955+
''gray(a% / b)'' is equal to ''lab(a% 0 0 / b)''.
19561956

19571957
<h3 id='gray-to-rgb'>
19581958
Converting gray colors to sRGB colors</h3>

0 commit comments

Comments
 (0)