Skip to content

Commit ff25781

Browse files
committed
[css-color] remove commas between in the color() examples
1 parent c546595 commit ff25781

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

css-color/Overview.bs

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ The RGB functions: ''rgb()'' and ''rgba()''</h3>
196196
but are clamped to the device's gamut.)
197197

198198
<p class="issue">The transfer function is undefined outside the range 0% to 100%.</p>
199-
199+
200200

201201
The final argument, the <<alpha-value>>, specifies the alpha of the color.
202202
If given as a <<number>>, the useful range of the value is ''0''
@@ -1534,26 +1534,32 @@ Device-independent Colors: Lab and LCH</h2>
15341534
CSS allows colors to be directly expressed in Lab and LCH.
15351535

15361536
<pre class='prod'>
1537-
<dfn>lab()</dfn> = lab( <<number>> , <<number>> , <<number>> )
1537+
<dfn>lab()</dfn> = lab( <<number>> <<number>> <<number>> [, <<alpha-value>>]?)
15381538
</pre>
15391539

15401540
The first argument specifies the CIE Lightness, the second argument is a and the third is b.
15411541
L is constrained to the range [0, 100] while a and b are signed values and
1542-
theoretically unbounded (but in practice do not exceed ±160).
1542+
theoretically unbounded (but in practice do not exceed ±160).
1543+
There is an optional fourth alpha value, separated by a comma.
15431544

15441545
<pre class='prod'>
1545-
<dfn>lch()</dfn> = lch( <<number>> , <<number>> , <<number>> )
1546+
<dfn>lch()</dfn> = lch( <<number>> <<number>> <<number>> [, <<alpha-value>>]?)
15461547
</pre>
15471548

15481549
The first argument specifies the CIE Lightness, the second argument is C and the third is H.
15491550
L is constrained to the range [0, 100]. C is an unsigned number, theoretically unbounded
15501551
(but in practice does not exceed 230).
15511552
H is constrained to the range [0, 360).
1553+
There is an optional fourth alpha value, separated by a comma.
1554+
15521555

15531556
<p class="issue">Need to define handling for out of range numbers.
15541557
Clip L, wrap H? Have also seen L up to 400, specifically
15551558
for high dynamic range situations.</p>
15561559

1560+
<p class="issue">Need to decide what, if anything, to do
1561+
for high dynamic range on luminance.</p>
1562+
15571563
<h3 id='rgb-to-lab'>
15581564
Converting sRGB colors to Lab colors</h3>
15591565

@@ -1610,7 +1616,7 @@ Converting LCH colors to Lab colors</h3>
16101616
<h2 id='grays'>
16111617
Specifying Grays: the ''gray()'' functional notation</h2>
16121618

1613-
<!-- As decided at San Francisco, this syntax is an alias to Lab with a=b=0. -->
1619+
<p class="issue">As decided at San Francisco, this syntax is an alias to Lab with a=b=0.</p>
16141620

16151621
Grays are fully desaturated colors. The ''gray()'' functional notation simplifies
16161622
specifying this common set of colors, so that only a single numerical parameter

0 commit comments

Comments
 (0)