Skip to content

Commit 0cc566c

Browse files
committed
Normalize anchors to match css3-background convention
1 parent 729fd68 commit 0cc566c

File tree

2 files changed

+39
-41
lines changed

2 files changed

+39
-41
lines changed

css3-images/Overview.html

+28-30
Original file line numberDiff line numberDiff line change
@@ -194,15 +194,15 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
194194
<li><a href="#resolution-units"><span class=secno>2. </span> Resolution
195195
Units: the &lt;resolution> type</a>
196196

197-
<li><a href="#the-image-type"><span class=secno>3. </span> Image Values:
198-
the &lt;image> type</a>
197+
<li><a href="#image-values"><span class=secno>3. </span> Image Values: the
198+
&lt;image> type</a>
199199
<ul class=toc>
200-
<li><a href="#the-url-type"><span class=secno>3.1. </span> Image
200+
<li><a href="#url-notation"><span class=secno>3.1. </span> Image
201201
References and Image Slices: the &lsquo;<code
202202
class=css>&lt;url></code>&rsquo; type and &lsquo;<code
203203
class=css>url()</code>&rsquo; notation</a>
204204

205-
<li><a href="#the-image-notation"><span class=secno>3.2. </span> Image
205+
<li><a href="#image-notation"><span class=secno>3.2. </span> Image
206206
Fallbacks and Annotations: the &lsquo;<code
207207
class=css>image()</code>&rsquo; notation</a>
208208
<ul class=toc>
@@ -212,7 +212,7 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
212212
<li><a href="#image-fallbacks"><span class=secno>3.2.2. </span> Image
213213
Fallbacks</a>
214214

215-
<li><a href="#solid-color-images"><span class=secno>3.2.3. </span>
215+
<li><a href="#color-images"><span class=secno>3.2.3. </span>
216216
Solid-color Images</a>
217217
</ul>
218218
</ul>
@@ -258,24 +258,24 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
258258
<li><a href="#object-sizing-examples"><span class=secno>5.4. </span>
259259
Examples of CSS Object Sizing</a>
260260

261-
<li><a href="#the-object-fit-property"><span class=secno>5.5. </span>
262-
Sizing Objects: the &lsquo;<code
263-
class=property>object-fit</code>&rsquo; property</a>
261+
<li><a href="#the-object-fit"><span class=secno>5.5. </span> Sizing
262+
Objects: the &lsquo;<code class=property>object-fit</code>&rsquo;
263+
property</a>
264264

265-
<li><a href="#the-object-position-property"><span class=secno>5.6.
266-
</span> Positioning Objects: the &lsquo;<code
265+
<li><a href="#the-object-position"><span class=secno>5.6. </span>
266+
Positioning Objects: the &lsquo;<code
267267
class=property>object-position</code>&rsquo; property</a>
268268
</ul>
269269

270270
<li><a href="#image-processing"><span class=secno>6. </span> Image
271271
Processing</a>
272272
<ul class=toc>
273-
<li><a href="#the-image-resolution-property"><span class=secno>6.1.
274-
</span> Overriding Image Resolutions: the &lsquo;<code
273+
<li><a href="#the-image-resolution"><span class=secno>6.1. </span>
274+
Overriding Image Resolutions: the &lsquo;<code
275275
class=property>image-resolution</code>&rsquo; property</a>
276276

277-
<li><a href="#the-image-orientation-property"><span class=secno>6.2.
278-
</span> Orienting an Image on the Page: the &lsquo;<code
277+
<li><a href="#the-image-orientation"><span class=secno>6.2. </span>
278+
Orienting an Image on the Page: the &lsquo;<code
279279
class=property>image-orientation</code>&rsquo; property</a>
280280
</ul>
281281

@@ -422,7 +422,7 @@ <h2 id=resolution-units><span class=secno>2. </span> Resolution Units: the
422422
</div>
423423
<!-- ====================================================================== -->
424424

425-
<h2 id=the-image-type><span class=secno>3. </span> Image Values: the
425+
<h2 id=image-values><span class=secno>3. </span> Image Values: the
426426
&lt;image> type</h2>
427427

428428
<p>The &lsquo;<a href="#image-type"><code
@@ -454,7 +454,7 @@ <h2 id=the-image-type><span class=secno>3. </span> Image Values: the
454454
notation.</p>
455455
<!-- ====================================================================== -->
456456

457-
<h3 id=the-url-type><span class=secno>3.1. </span> Image References and
457+
<h3 id=url-notation><span class=secno>3.1. </span> Image References and
458458
Image Slices: the &lsquo;<code class=css>&lt;url></code>&rsquo; type and
459459
&lsquo;<code class=css>url()</code>&rsquo; notation</h3>
460460

@@ -476,8 +476,8 @@ <h3 id=the-url-type><span class=secno>3.1. </span> Image References and
476476
href="#invalid-image"><i>invalid image</i></a>.</p>
477477
<!-- ====================================================================== -->
478478

479-
<h3 id=the-image-notation><span class=secno>3.2. </span> Image Fallbacks
480-
and Annotations: the &lsquo;<code class=css>image()</code>&rsquo; notation</h3>
479+
<h3 id=image-notation><span class=secno>3.2. </span> Image Fallbacks and
480+
Annotations: the &lsquo;<code class=css>image()</code>&rsquo; notation</h3>
481481

482482
<p>The &lsquo;<code class=css>image()</code>&rsquo; function allows an
483483
author to:
@@ -631,8 +631,7 @@ <h4 id=image-fallbacks><span class=secno>3.2.2. </span> Image Fallbacks</h4>
631631
</div>
632632
<!-- XXX SVG fragment example with spriting / fallbacks (once SVG can provide this) -->
633633

634-
<h4 id=solid-color-images><span class=secno>3.2.3. </span> Solid-color
635-
Images</h4>
634+
<h4 id=color-images><span class=secno>3.2.3. </span> Solid-color Images</h4>
636635

637636
<div class=example>
638637
<p>At times, one may need a solid-color image for a property or function
@@ -673,7 +672,7 @@ <h4 id='bidi-images'>
673672
-->
674673
<!-- ====================================================================== -->
675674
<!-- removed per WG decision
676-
<h3 id='element-reference'>
675+
<h3 id='element-notation'>
677676
Using Elements as Images: the ''element()'' notation</h3>
678677
679678
<p>The ''element()'' function allows an author to use an element in the document as an image. As the referenced element changes appearance, the image changes as well. This can be used, for example, to create live previews of the next/previous slide in a slideshow, or to reference a canvas element for a fancy generated gradient or even an animated background.</p>
@@ -1970,8 +1969,8 @@ <h3 id=object-sizing-examples><span class=secno>5.4. </span> Examples of
19701969
</div>
19711970
<!-- ====================================================================== -->
19721971

1973-
<h3 id=the-object-fit-property><span class=secno>5.5. </span> Sizing
1974-
Objects: the &lsquo;<a href="#object-fit"><code
1972+
<h3 id=the-object-fit><span class=secno>5.5. </span> Sizing Objects: the
1973+
&lsquo;<a href="#object-fit"><code
19751974
class=property>object-fit</code></a>&rsquo; property</h3>
19761975

19771976
<table class=propdef>
@@ -2108,8 +2107,8 @@ <h3 id=the-object-fit-property><span class=secno>5.5. </span> Sizing
21082107
attributes on the root &lt;svg> element to determine how to draw itself.</p>
21092108
<!-- ====================================================================== -->
21102109

2111-
<h3 id=the-object-position-property><span class=secno>5.6. </span>
2112-
Positioning Objects: the &lsquo;<a href="#object-position"><code
2110+
<h3 id=the-object-position><span class=secno>5.6. </span> Positioning
2111+
Objects: the &lsquo;<a href="#object-position"><code
21132112
class=property>object-position</code></a>&rsquo; property</h3>
21142113

21152114
<table class=propdef>
@@ -2173,8 +2172,8 @@ <h3 id=the-object-position-property><span class=secno>5.6. </span>
21732172

21742173
<h2 id=image-processing><span class=secno>6. </span> Image Processing</h2>
21752174

2176-
<h3 id=the-image-resolution-property><span class=secno>6.1. </span>
2177-
Overriding Image Resolutions: the &lsquo;<a href="#image-resolution"><code
2175+
<h3 id=the-image-resolution><span class=secno>6.1. </span> Overriding Image
2176+
Resolutions: the &lsquo;<a href="#image-resolution"><code
21782177
class=property>image-resolution</code></a>&rsquo; property</h3>
21792178

21802179
<p>The <i>image resolution</i> is defined as the number of image pixels per
@@ -2328,9 +2327,8 @@ <h3 id=the-image-resolution-property><span class=secno>6.1. </span>
23282327
</div>
23292328
<!-- ====================================================================== -->
23302329

2331-
<h3 id=the-image-orientation-property><span class=secno>6.2. </span>
2332-
Orienting an Image on the Page: the &lsquo;<a
2333-
href="#image-orientation"><code
2330+
<h3 id=the-image-orientation><span class=secno>6.2. </span> Orienting an
2331+
Image on the Page: the &lsquo;<a href="#image-orientation"><code
23342332
class=property>image-orientation</code></a>&rsquo; property</h3>
23352333

23362334
<p>If a picture is taken with a camera turned on its side, or a document

css3-images/Overview.src.html

+11-11
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ <h2 id='resolution-units'>
152152

153153
<!-- ====================================================================== -->
154154

155-
<h2 id="the-image-type">
155+
<h2 id="image-values">
156156
Image Values: the &lt;image> type</h2>
157157

158158
<p>The ''&lt;image>'' value type denotes a 2D image. It can be a
@@ -169,7 +169,7 @@ <h2 id="the-image-type">
169169

170170
<!-- ====================================================================== -->
171171

172-
<h3 id="the-url-type">
172+
<h3 id="url-notation">
173173
Image References and Image Slices: the ''&lt;url>'' type and ''url()'' notation</h3>
174174

175175
<p>The simplest way to indicate an image is to reference an image file by URL. This can be done with the <a href="http://www.w3.org/TR/CSS21/syndata.html#uri">''url()'' notation</a>, defined in [[!CSS21]].
@@ -185,7 +185,7 @@ <h3 id="the-url-type">
185185

186186
<!-- ====================================================================== -->
187187

188-
<h3 id="the-image-notation">
188+
<h3 id="image-notation">
189189
Image Fallbacks and Annotations: the ''image()'' notation</h3>
190190

191191
<p>The ''image()'' function allows an author to:</p>
@@ -207,7 +207,7 @@ <h3 id="the-image-notation">
207207

208208
<p>Each ''&lt;string>'' or ''&lt;url>'' inside ''image()'' represents an image, just as if the <a href="#url">''url()'' notation</a> had been used. As usual for URLs in CSS, relative URLs are resolved to an absolute URL (as described in Values &amp; Units [[!CSS3VAL]]) when a specified ''image()'' value is computed.</p>
209209

210-
<h4>
210+
<h4 id="image-fragments">
211211
Image Fragments</h4>
212212

213213
<p>When a URL specified in ''image()'' represents a portion of a resource
@@ -244,7 +244,7 @@ <h4>
244244
<!-- -->background-image: image('sprites.png#xywh=10,30,60,20'); /* new UAs */</pre>
245245
</div>
246246

247-
<h4>
247+
<h4 id="image-fallbacks">
248248
Image Fallbacks</h4>
249249

250250
<p>Multiple ''&lt;image-decl>s'' can be given separated by commas, in which case the function represents the first image that's not an <i>invalid image</i>. The final argument can specify a ''&lt;color>'' to serve as an ultimate fallback; this can be used, e.g. for 'background-image', to ensure adequate contrast if none of the preceding ''&lt;image-decl>s'' can be used. If the final argument is a ''&lt;color>'', it represents a solid-color image of the given color with no <i>intrinsic dimensions</i>. If all of the provided ''&lt;image-decl>s'' are <i>invalid images</i> and a fallback color was not provided as the last argument, the entire ''image()'' function must be treated as an <i>invalid image</i>.
@@ -281,7 +281,7 @@ <h4>
281281

282282
<!-- XXX SVG fragment example with spriting / fallbacks (once SVG can provide this) -->
283283

284-
<h4>
284+
<h4 id="color-images">
285285
Solid-color Images</h4>
286286

287287
<div class='example'>
@@ -319,7 +319,7 @@ <h4 id='bidi-images'>
319319

320320
<!-- ====================================================================== -->
321321
<!-- removed per WG decision
322-
<h3 id='element-reference'>
322+
<h3 id='element-notation'>
323323
Using Elements as Images: the ''element()'' notation</h3>
324324
325325
<p>The ''element()'' function allows an author to use an element in the document as an image. As the referenced element changes appearance, the image changes as well. This can be used, for example, to create live previews of the next/previous slide in a slideshow, or to reference a canvas element for a fancy generated gradient or even an animated background.</p>
@@ -1225,7 +1225,7 @@ <h3 id='object-sizing-examples'>
12251225

12261226
<!-- ====================================================================== -->
12271227

1228-
<h3 id="the-object-fit-property">
1228+
<h3 id="the-object-fit">
12291229
Sizing Objects: the 'object-fit' property</h3>
12301230

12311231
<table class="propdef">
@@ -1328,7 +1328,7 @@ <h3 id="the-object-fit-property">
13281328

13291329
<!-- ====================================================================== -->
13301330

1331-
<h3 id="the-object-position-property">
1331+
<h3 id="the-object-position">
13321332
Positioning Objects: the 'object-position' property</h3>
13331333

13341334
<table class="propdef">
@@ -1370,7 +1370,7 @@ <h3 id="the-object-position-property">
13701370
<h2 id="image-processing">
13711371
Image Processing</h2>
13721372

1373-
<h3 id="the-image-resolution-property">
1373+
<h3 id="the-image-resolution">
13741374
Overriding Image Resolutions: the 'image-resolution' property</h3>
13751375

13761376
<p>The <i>image resolution</i> is defined as the number of image
@@ -1493,7 +1493,7 @@ <h3 id="the-image-resolution-property">
14931493

14941494
<!-- ====================================================================== -->
14951495

1496-
<h3 id="the-image-orientation-property">
1496+
<h3 id="the-image-orientation">
14971497
Orienting an Image on the Page: the 'image-orientation' property</h3>
14981498

14991499
<p>If a picture is taken with a camera turned on its side, or a document isn't positioned correctly within a scanner, the resultant image may be "sideways" or even upside-down. The 'image-orientation' property provides a way to apply an "out-of-band" rotation to image source data to correctly orient an image.</p>

0 commit comments

Comments
 (0)