Skip to content

Commit 96c8c1a

Browse files
committed
Give all index-def elements fixed IDs.
1 parent 178b408 commit 96c8c1a

2 files changed

Lines changed: 58 additions & 60 deletions

File tree

css3-color/Overview.html

Lines changed: 48 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ <h3 id=transparency><span class=secno>3.2. </span>Transparency: the <span
635635

636636
<dl>
637637
<dt id=alphavaluedt><span class="prop-value index-def"
638-
id=ltalphavaluegt>&lt;alphavalue&gt;</span>
638+
id=alphavalue-def>&lt;alphavalue&gt;</span>
639639

640640
<dd>Syntactically a &lt;number&gt;. The uniform opacity setting to be
641641
applied across an entire object. Any values outside the range 0.0 (fully
@@ -772,7 +772,7 @@ <h3 id=numerical><span class=secno>4.2. </span>Numerical color values</h3>
772772

773773
<h4 id=rgb-color><span class=secno>4.2.1. </span>RGB color values</h4>
774774

775-
<p>The <span class=index-def id=rgb-color-model title="rgb()">RGB color
775+
<p>The <span class=index-def id=rgb-def title="rgb()">RGB color
776776
model</span> is used in numerical color specifications. These examples all
777777
specify the same color:
778778

@@ -804,7 +804,7 @@ <h4 id=rgb-color><span class=secno>4.2.1. </span>RGB color values</h4>
804804
allowed around the numerical values.
805805

806806
<p>All RGB colors are specified in the <span class=index-def
807-
id=srgb0>sRGB</span> color space (see <a href="#SRGB"
807+
id=sRGB-def>sRGB</span> color space (see <a href="#SRGB"
808808
rel=biblioentry>[SRGB]<!--{{!SRGB}}--></a>). User agents may vary in the
809809
fidelity with which they represent these colors, but using sRGB provides
810810
an unambiguous and objectively measurable definition of what the color
@@ -838,12 +838,11 @@ <h4 id=rgb-color><span class=secno>4.2.1. </span>RGB color values</h4>
838838

839839
<h4 id=rgba-color><span class=secno>4.2.2. </span>RGBA color values</h4>
840840

841-
<p>The <span class=index-def id=rgb-color-model-is-extended-in-this-spec
842-
title="rgba()">RGB color model is extended in this specification to
843-
include &lsquo;<code class=property>alpha</code>&rsquo; to allow
844-
specification of the opacity of a color. See <a href="#alpha">simple alpha
845-
compositing</a> for details. These examples all specify the same
846-
color:</span>
841+
<p>The <span class=index-def id=rgba-def title="rgba()">RGB color model is
842+
extended in this specification to include &lsquo;<code
843+
class=property>alpha</code>&rsquo; to allow specification of the opacity
844+
of a color. See <a href="#alpha">simple alpha compositing</a> for details.
845+
These examples all specify the same color:</span>
847846

848847
<div class=example>
849848
<p style="display:none">Example(s):</p>
@@ -862,7 +861,7 @@ <h4 id=rgba-color><span class=secno>4.2.2. </span>RGBA color values</h4>
862861
class=css>rgba(</code>&rsquo; followed by a comma-separated list of three
863862
numerical values (either three integer values or three percentage values),
864863
followed by an <a class=index-inst href="#alphavaluedt"
865-
id=ltalphavaluegt0>&lt;alphavalue&gt;</a>, followed by &lsquo;<code
864+
id=ltalphavaluegt>&lt;alphavalue&gt;</a>, followed by &lsquo;<code
866865
class=css>)</code>&rsquo;. The integer value 255 corresponds to 100%,
867866
rgba(255,255,255,0.8) = rgba(100%,100%,100%,0.8). White space characters
868867
are allowed around the numerical values.
@@ -905,16 +904,15 @@ <h4 id=transparent><span class=secno>4.2.3. </span>&lsquo;<code
905904
definition of those properties in CSS3.
906905

907906
<dl>
908-
<dt class=index-def id=transparent1>transparent
907+
<dt class=index-def id=transparent-def>transparent
909908

910909
<dd>Fully transparent. This keyword can be considered a shorthand for
911910
rgba(0,0,0,0) which is its computed value.
912911
</dl>
913912

914913
<h4 id=hsl-color><span class=secno>4.2.4. </span>HSL color values</h4>
915914

916-
<p>CSS3 adds numerical <span class=index-def
917-
id=hue-saturation-lightness-hsl-colors-as-a
915+
<p>CSS3 adds numerical <span class=index-def id=hsl-def
918916
title="hsl()">hue-saturation-lightness (HSL) colors as a complement to
919917
numerical RGB colors. It has been observed that RGB colors have the
920918
following limitations: </span>
@@ -2727,13 +2725,13 @@ <h5 id=hsl-examples><span class=secno>4.2.4.1. </span>HSL Examples</h5>
27272725
<h4 id=hsla-color style="margin-top:2em"><span class=secno>4.2.5.
27282726
</span>HSLA color values</h4>
27292727

2730-
<p><span class=index-def id=just-as-the-rgb-functional-notation-has-
2731-
title="hsla()">Just as the &lsquo;<code class=css>rgb()</code>&rsquo;
2732-
functional notation has the &lsquo;<code class=css>rgba()</code>&rsquo;
2733-
alpha counterpart, the &lsquo;<code class=css>hsl()</code>&rsquo;
2734-
functional notation has the &lsquo;<code class=css>hsla()</code>&rsquo;
2735-
alpha counterpart.</span> See <a href="#alpha">simple alpha
2736-
compositing</a> for details. These examples specify the same color:
2728+
<p><span class=index-def id=hsla-def title="hsla()">Just as the
2729+
&lsquo;<code class=css>rgb()</code>&rsquo; functional notation has the
2730+
&lsquo;<code class=css>rgba()</code>&rsquo; alpha counterpart, the
2731+
&lsquo;<code class=css>hsl()</code>&rsquo; functional notation has the
2732+
&lsquo;<code class=css>hsla()</code>&rsquo; alpha counterpart.</span> See
2733+
<a href="#alpha">simple alpha compositing</a> for details. These examples
2734+
specify the same color:
27372735

27382736
<div class=example>
27392737
<p style="display:none">Example(s):</p>
@@ -2747,7 +2745,7 @@ <h4 id=hsla-color style="margin-top:2em"><span class=secno>4.2.5.
27472745
<p>The format of an HSLA color value in the functional notation is
27482746
&lsquo;<code class=css>hsla(</code>&rsquo; followed by the hue in degrees,
27492747
saturation and lightness as a percentage, and an <a class=index-inst
2750-
href="#alphavaluedt" id=ltalphavaluegt1>&lt;alphavalue&gt;</a>, followed
2748+
href="#alphavaluedt" id=ltalphavaluegt0>&lt;alphavalue&gt;</a>, followed
27512749
by &lsquo;<code class=css>)</code>&rsquo;. White space characters are
27522750
allowed around the numerical values.
27532751

@@ -4432,7 +4430,7 @@ <h3 id=currentcolor><span class=secno>4.4. </span>'currentColor' color
44324430
definition of those properties in CSS3.
44334431

44344432
<dl>
4435-
<dt class=index-def id=currentcolor3>currentColor
4433+
<dt class=index-def id=currentColor-def>currentColor
44364434

44374435
<dd>The value of the &lsquo;<code class=property><a
44384436
href="#color0">color</a></code>&rsquo; property. The computed value of
@@ -4447,10 +4445,9 @@ <h3 id=css-system><span class=secno>4.5. </span>CSS System Colors</h3>
44474445

44484446
<h4 id=css2-system><span class=secno>4.5.1. </span>CSS2 System Colors</h4>
44494447

4450-
<p><strong>Deprecated.</strong> <span class=index-def
4451-
id=in-addition-to-being-able-to-assign-pre- title="system colors">In
4452-
addition to being able to assign pre-defined color values to text,
4453-
backgrounds, etc., <a
4448+
<p><strong>Deprecated.</strong> <span class=index-def id=system-colors-def
4449+
title="system colors">In addition to being able to assign pre-defined
4450+
color values to text, backgrounds, etc., <a
44544451
href="http://www.w3.org/TR/REC-CSS2/ui.html#system-colors">CSS2</a>
44554452
allowed authors to specify colors in a manner that integrated them into
44564453
the user's graphic environment.</span>
@@ -4626,8 +4623,9 @@ <h3 id=notes><span class=secno>4.6. </span>Notes on using colors</h3>
46264623

46274624
<h2 id=alpha><span class=secno>5. </span>Simple alpha compositing</h2>
46284625

4629-
<p>When drawing, implementations must <span class=index-def id=handle-alpha
4630-
title=compositing>handle alpha</span> according to the rules in <a
4626+
<p>When drawing, implementations must <span class=index-def
4627+
id=compositing-def title=compositing>handle alpha</span> according to the
4628+
rules in <a
46314629
href="http://www.w3.org/TR/2003/REC-SVG11-20030114/masking.html#SimpleAlphaBlending">Section
46324630
14.2 Simple alpha compositing</a> of <a href="#SVG11"
46334631
rel=biblioentry>[SVG11]<!--{{!SVG11}}--></a>. (If the &lsquo;<code
@@ -5073,10 +5071,10 @@ <h2 class=no-num id=index>Index</h2>
50735071
<!--begin-index-->
50745072

50755073
<ul class=indexlist>
5076-
<li>&lt;alphavalue&gt;, <a href="#ltalphavaluegt"
5074+
<li>&lt;alphavalue&gt;, <a href="#alphavalue-def"
50775075
title="&lt;alphavalue&gt;"><strong>3.2.</strong></a>, <a
5078-
href="#ltalphavaluegt0" title="&lt;alphavalue&gt;">4.2.2.</a>, <a
5079-
href="#ltalphavaluegt1" title="&lt;alphavalue&gt;">4.2.5.</a>
5076+
href="#ltalphavaluegt" title="&lt;alphavalue&gt;">4.2.2.</a>, <a
5077+
href="#ltalphavaluegt0" title="&lt;alphavalue&gt;">4.2.5.</a>
50805078

50815079
<li>color, <a href="#color0" title=color><strong>3.1.</strong></a>, <a
50825080
href="#ltcolorgt" title="&lt;color&gt;">3.1.</a>, <a
@@ -5088,36 +5086,36 @@ <h2 class=no-num id=index>Index</h2>
50885086
<li>color-rendering, <a href="#color-rendering"
50895087
title=color-rendering>5.</a>
50905088

5091-
<li>compositing, <a href="#handle-alpha"
5089+
<li>compositing, <a href="#compositing-def"
50925090
title=compositing><strong>5.</strong></a>
50935091

5094-
<li>currentColor, <a href="#currentcolor0" title=currentColor>3.1.</a>, <a
5095-
href="#currentcolor1" title=currentColor>3.1.</a>, <a
5096-
href="#currentcolor2" title=currentColor>3.1.</a>, <a
5097-
href="#currentcolor3" title=currentColor><strong>4.4.</strong></a>
5092+
<li>currentColor, <a href="#currentColor-def"
5093+
title=currentColor><strong>4.4.</strong></a>, <a href="#currentcolor0"
5094+
title=currentColor>3.1.</a>, <a href="#currentcolor1"
5095+
title=currentColor>3.1.</a>, <a href="#currentcolor2"
5096+
title=currentColor>3.1.</a>
50985097

5099-
<li>hsl(), <a href="#hue-saturation-lightness-hsl-colors-as-a"
5100-
title="hsl()"><strong>4.2.4.</strong></a>
5098+
<li>hsl(), <a href="#hsl-def" title="hsl()"><strong>4.2.4.</strong></a>
51015099

5102-
<li>hsla(), <a href="#just-as-the-rgb-functional-notation-has-"
5103-
title="hsla()"><strong>4.2.5.</strong></a>
5100+
<li>hsla(), <a href="#hsla-def" title="hsla()"><strong>4.2.5.</strong></a>
5101+
51045102

51055103
<li>opacity, <a href="#opacity" title=opacity><strong>3.2.</strong></a>
51065104

5107-
<li>rgb(), <a href="#rgb-color-model"
5108-
title="rgb()"><strong>4.2.1.</strong></a>
5105+
<li>rgb(), <a href="#rgb-def" title="rgb()"><strong>4.2.1.</strong></a>
51095106

5110-
<li>rgba(), <a href="#rgb-color-model-is-extended-in-this-spec"
5111-
title="rgba()"><strong>4.2.2.</strong></a>
5107+
<li>rgba(), <a href="#rgba-def" title="rgba()"><strong>4.2.2.</strong></a>
5108+
51125109

5113-
<li>sRGB, <a href="#srgb" title=sRGB>4.1.</a>, <a href="#srgb0"
5114-
title=sRGB><strong>4.2.1.</strong></a>
5110+
<li>sRGB, <a href="#sRGB-def" title=sRGB><strong>4.2.1.</strong></a>, <a
5111+
href="#srgb" title=sRGB>4.1.</a>
51155112

5116-
<li>system colors, <a href="#in-addition-to-being-able-to-assign-pre-"
5117-
title="system colors"><strong>4.5.1.</strong></a>
5113+
<li>system colors, <a href="#system-colors-def" title="system
5114+
colors"><strong>4.5.1.</strong></a>
51185115

5119-
<li>transparent, <a href="#transparent0" title=transparent>3.1.</a>, <a
5120-
href="#transparent1" title=transparent><strong>4.2.3.</strong></a>
5116+
<li>transparent, <a href="#transparent-def"
5117+
title=transparent><strong>4.2.3.</strong></a>, <a href="#transparent0"
5118+
title=transparent>3.1.</a>
51215119
</ul>
51225120
<!--end-index-->
51235121

css3-color/Overview.src.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ <h3 id="transparency">Transparency: the <span class="property">'opacity'</span>
431431
</table>
432432

433433
<dl>
434-
<dt id="alphavaluedt"><span class="prop-value index-def">&lt;alphavalue&gt;</span></dt>
434+
<dt id="alphavaluedt"><span class="prop-value index-def" id="alphavalue-def">&lt;alphavalue&gt;</span></dt>
435435

436436
<dd>Syntactically a &lt;number&gt;. The uniform opacity setting to be applied across an entire object.
437437
Any values outside the range 0.0 (fully transparent) to 1.0 (fully
@@ -518,7 +518,7 @@ <h3 id="numerical">Numerical color values</h3>
518518

519519
<h4 id="rgb-color">RGB color values</h4>
520520

521-
<p>The <span class="index-def" title="rgb()">RGB color model</span> is used in numerical color specifications. These examples all specify the same color:</p>
521+
<p>The <span class="index-def" title="rgb()" id="rgb-def">RGB color model</span> is used in numerical color specifications. These examples all specify the same color:</p>
522522

523523
<div class="example"><p style="display:none">Example(s):</p>
524524
<pre>
@@ -544,7 +544,7 @@ <h4 id="rgb-color">RGB color values</h4>
544544
hexadecimal notation: rgb(255,255,255) = rgb(100%,100%,100%) =
545545
#FFF. White space characters are allowed around the numerical values.
546546
</p>
547-
<p>All RGB colors are specified in the <span class="index-def">sRGB</span> color space (see
547+
<p>All RGB colors are specified in the <span class="index-def" id="sRGB-def">sRGB</span> color space (see
548548
[[!SRGB]]). User agents may vary in the fidelity with which they represent these colors, but using sRGB provides an unambiguous and
549549
objectively measurable definition of what the color should be, which can be related to international standards (see [[!COLORIMETRY]]).
550550
</p>
@@ -573,7 +573,7 @@ <h4 id="rgb-color">RGB color values</h4>
573573

574574
<h4 id="rgba-color">RGBA color values</h4>
575575

576-
<p>The <span class="index-def" title="rgba()">RGB color model is extended</a> in this specification to include
576+
<p>The <span class="index-def" title="rgba()" id="rgba-def">RGB color model is extended</a> in this specification to include
577577
'alpha' to allow specification of the opacity of a color.
578578
See <a href="#alpha">simple alpha compositing</a> for details.
579579
These examples all specify the same color:</p>
@@ -622,15 +622,15 @@ <h4 id="transparent">'transparent' color keyword</h4>
622622
Open eBook(tm) Publication Structure 1.0.1 [[OEB101]] extended the 'color' property to also accept the 'transparent' keyword. CSS3 extends the color value to include the 'transparent' keyword to allow its use with all properties that accept a &lt;color&gt; value. This simplifies the definition of those properties in CSS3.
623623
</p>
624624

625-
<dl><dt class="index-def">transparent</dt>
625+
<dl><dt class="index-def" id="transparent-def">transparent</dt>
626626
<dd>Fully transparent. This keyword can be considered a shorthand for rgba(0,0,0,0) which is its computed value.
627627
</dd>
628628
</dl>
629629

630630

631631
<h4 id="hsl-color">HSL color values</h4>
632632

633-
<p>CSS3 adds numerical <span class="index-def" title="hsl()">hue-saturation-lightness (HSL) colors</a> as a complement to numerical RGB colors. It has been observed that RGB colors have the following limitations:
633+
<p>CSS3 adds numerical <span class="index-def" title="hsl()" id="hsl-def">hue-saturation-lightness (HSL) colors</a> as a complement to numerical RGB colors. It has been observed that RGB colors have the following limitations:
634634
</p>
635635

636636
<ul>
@@ -1443,7 +1443,7 @@ <h5 id="hsl-examples">HSL Examples</h5>
14431443

14441444
<h4 id="hsla-color" style="margin-top:2em">HSLA color values</h4>
14451445

1446-
<p><span class="index-def" title="hsla()">Just as the 'rgb()' functional notation has the 'rgba()' alpha counterpart, the 'hsl()' functional notation has the 'hsla()' alpha counterpart.</span>
1446+
<p><span class="index-def" title="hsla()" id="hsla-def">Just as the 'rgb()' functional notation has the 'rgba()' alpha counterpart, the 'hsl()' functional notation has the 'hsla()' alpha counterpart.</span>
14471447
See <a href="#alpha">simple alpha compositing</a> for details.
14481448
These examples specify the same color:
14491449
</p>
@@ -1638,7 +1638,7 @@ <h3 id="currentcolor">'currentColor' color keyword</h3>
16381638
<a href="http://www.w3.org/TR/SVG/color.html#ColorProperty">SVG 1.0 introduced the 'currentColor' value</a>
16391639
for the 'fill', 'stroke', 'stop-color', 'flood-color', 'lighting-color' properties. CSS3 extends the color value to include the 'currentColor' keyword to allow its use with all properties that accept a &lt;color&gt; value. This simplifies the definition of those properties in CSS3.
16401640
</p>
1641-
<dl><dt class="index-def">currentColor</dt>
1641+
<dl><dt class="index-def" id="currentColor-def">currentColor</dt>
16421642
<dd>The value of the 'color' property. The computed value of the 'currentColor' keyword is the computed value of the 'color' property. If the 'currentColor' keyword is set on the 'color' property itself, it is treated as 'color:inherit' at parse time.
16431643
</dd>
16441644
</dl>
@@ -1647,7 +1647,7 @@ <h3 id="css-system">CSS System Colors</h3>
16471647

16481648
<h4 id="css2-system">CSS2 System Colors</h4>
16491649

1650-
<p><strong>Deprecated.</strong> <span class="index-def" title="system colors">In addition to being able to assign pre-defined color values to text, backgrounds,
1650+
<p><strong>Deprecated.</strong> <span class="index-def" title="system colors" id="system-colors-def">In addition to being able to assign pre-defined color values to text, backgrounds,
16511651
etc., <a href="http://www.w3.org/TR/REC-CSS2/ui.html#system-colors">CSS2</a>
16521652
allowed authors to specify colors in a manner that
16531653
integrated them into the user's graphic environment.</span>
@@ -1766,7 +1766,7 @@ <h3 id="notes">Notes on using colors</h3>
17661766
<h2 id="alpha">Simple alpha compositing</h2>
17671767

17681768
<p>When drawing, implementations must <span class="index-def"
1769-
title="compositing">handle alpha</span> according to the
1769+
title="compositing" id="compositing-def">handle alpha</span> according to the
17701770
rules in <a
17711771
href="http://www.w3.org/TR/2003/REC-SVG11-20030114/masking.html#SimpleAlphaBlending">Section
17721772
14.2 Simple alpha compositing</a> of [[!SVG11]].

0 commit comments

Comments
 (0)