Skip to content

Commit d5337b9

Browse files
committed
Put #rgb and #rrggbb in index, although the indexer confuses the former with rgb().
1 parent d4a9d57 commit d5337b9

2 files changed

Lines changed: 13 additions & 8 deletions

File tree

css3-color/Overview.html

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -850,11 +850,12 @@ <h4 id=rgb-color><span class=secno>4.2.1. </span>RGB color values</h4>
850850

851851
<p> The format of an RGB value in hexadecimal notation is a &lsquo;<code
852852
class=css>#</code>&rsquo; immediately followed by either three or six
853-
hexadecimal characters. The three-digit RGB notation (#rgb) is converted
854-
into six-digit form (#rrggbb) by replicating digits, not by adding zeros.
855-
For example, #fb0 expands to #ffbb00. This ensures that white (#ffffff)
856-
can be specified with the short notation (#fff) and removes any
857-
dependencies on the color depth of the display.
853+
hexadecimal characters. The three-digit RGB notation (<span
854+
class=index-def id=rgb>#rgb</span>) is converted into six-digit form
855+
(<span class=index-def id=rrggbb>#rrggbb</span>) by replicating digits,
856+
not by adding zeros. For example, #fb0 expands to #ffbb00. This ensures
857+
that white (#ffffff) can be specified with the short notation (#fff) and
858+
removes any dependencies on the color depth of the display.
858859

859860
<p> The format of an RGB value in the functional notation is &lsquo;<code
860861
class=css>rgb(</code>&rsquo; followed by a comma-separated list of three
@@ -5589,7 +5590,8 @@ <h2 class=no-num id=index>Index</h2>
55895590
<li>red, <a href="#red" title=red><strong>4.1.</strong></a>, <a
55905591
href="#red0" title=red><strong>4.3.</strong></a>
55915592

5592-
<li>rgb(), <a href="#rgb-def" title="rgb()"><strong>4.2.1.</strong></a>
5593+
<li>#rgb, <a href="#rgb" title="#rgb"><strong>4.2.1.</strong></a>, <a
5594+
href="#rgb-def" title="rgb()"><strong>4.2.1.</strong></a>
55935595

55945596
<li>rgba(), <a href="#rgba-def" title="rgba()"><strong>4.2.2.</strong></a>
55955597

@@ -5600,6 +5602,9 @@ <h2 class=no-num id=index>Index</h2>
56005602
<li>royalblue, <a href="#royalblue"
56015603
title=royalblue><strong>4.3.</strong></a>
56025604

5605+
<li>#rrggbb, <a href="#rrggbb" title="#rrggbb"><strong>4.2.1.</strong></a>
5606+
5607+
56035608
<li>saddlebrown, <a href="#saddlebrown"
56045609
title=saddlebrown><strong>4.3.</strong></a>
56055610

css3-color/Overview.src.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,8 @@ <h4 id="rgb-color">RGB color values</h4>
475475

476476
<p> The format of an RGB value in hexadecimal notation is a '#'
477477
immediately followed by either three or six hexadecimal
478-
characters. The three-digit RGB notation (#rgb) is converted into
479-
six-digit form (#rrggbb) by replicating digits, not by adding
478+
characters. The three-digit RGB notation (<span class="index-def">#rgb</span>) is converted into
479+
six-digit form (<span class="index-def">#rrggbb</span>) by replicating digits, not by adding
480480
zeros. For example, #fb0 expands to #ffbb00. This ensures that
481481
white (#ffffff) can be specified with the short notation (#fff) and
482482
removes any dependencies on the color depth of the display.

0 commit comments

Comments
 (0)