Skip to content

Commit 5367e8c

Browse files
committed
[css2] named anchors
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402768
1 parent b6e9bef commit 5367e8c

6 files changed

Lines changed: 32 additions & 32 deletions

File tree

css2/colors.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h1><a name="q0">14 Colors and Backgrounds</a></h1>
3838
<p><strong>Contents</strong>
3939
<ul class="toc">
4040
<li class="tocline2"><a href="colors.html#colors" class="tocxref">14.1 Foreground color: the <span class="propinst-color">'color'</span> property</a>
41-
<li class="tocline2"><a href="colors.html#q2" class="tocxref">14.2 The background</a>
41+
<li class="tocline2"><a href="colors.html#background" class="tocxref">14.2 The background</a>
4242
<ul class="toc">
4343
<li class="tocline3"><a href="colors.html#background-properties" class="tocxref">14.2.1 Background properties: <span class="propinst-background-color">'background-color'</span>, <span class="propinst-background-image">'background-image'</span>, <span class="propinst-background-repeat">'background-repeat'</span>, <span class="propinst-background-attachment">'background-attachment'</span>, <span class="propinst-background-position">'background-position'</span>, and <span class="propinst-background">'background'</span></a>
4444
</ul>
@@ -86,7 +86,7 @@ <h2>14.1 <a name="colors">Foreground color</a>: the <a href="colors.html#propdef
8686
</pre>
8787
</div>
8888

89-
<h2><a name="q2">14.2 The background</a></h2>
89+
<h2>14.2 <a name="background">The background</a></h2>
9090

9191
<p>Authors may specify the background of an element (i.e., its
9292
rendering surface) as either a color or an image. In terms of the <a

css2/colors.src

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
22
<html lang="en">
3-
<!-- $Id: colors.src,v 2.47 2007-04-25 01:55:42 bbos Exp $ -->
3+
<!-- $Id: colors.src,v 2.48 2007-07-17 03:10:21 fantasai Exp $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<title>Colors and backgrounds</title>
@@ -43,7 +43,7 @@ em { color: rgb(255,0,0) } /* RGB range 0-255 */
4343
</pre>
4444
</div>
4545

46-
<h2>The background</h2>
46+
<h2><a name="background">The background</a></h2>
4747

4848
<p>Authors may specify the background of an element (i.e., its
4949
rendering surface) as either a color or an image. In terms of the <a

css2/fonts.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ <h1><a name="q0">15 Fonts</a></h1>
4141
<div class="subtoc">
4242
<p><strong>Contents</strong>
4343
<ul class="toc">
44-
<li class="tocline2"><a href="fonts.html#q1" class="tocxref">15.1 Introduction</a>
44+
<li class="tocline2"><a href="fonts.html#fonts-intro" class="tocxref">15.1 Introduction</a>
4545
<li class="tocline2"><a href="fonts.html#algorithm" class="tocxref">15.2 Font matching algorithm</a>
4646
<li class="tocline2"><a href="fonts.html#font-family-prop" class="tocxref">15.3 Font family: the <span class="propinst-font-family">'font-family'</span> property</a>
4747
<ul class="toc">
@@ -62,7 +62,7 @@ <h1><a name="q0">15 Fonts</a></h1>
6262
</ul>
6363
</div>
6464

65-
<h2><a name="q1">15.1 Introduction</a></h2>
65+
<h2>15.1 <a name="fonts-intro">Introduction</a></h2>
6666

6767
<p>Setting font properties will be among the most common uses of style
6868
sheets. Unfortunately, there exists no well-defined and universally

css2/fonts.src

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
22
<html lang="en">
3-
<!-- $Id: fonts.src,v 2.86 2007-07-04 07:03:02 fantasai Exp $ -->
3+
<!-- $Id: fonts.src,v 2.87 2007-07-17 03:11:40 fantasai Exp $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<title>Fonts</title>
@@ -22,7 +22,7 @@ body>del,body>ins {display:block}
2222

2323
<h1>Fonts</h1>
2424

25-
<h2>Introduction</h2>
25+
<h2><a name="fonts-intro">Introduction</a></h2>
2626

2727
<p>Setting font properties will be among the most common uses of style
2828
sheets. Unfortunately, there exists no well-defined and universally

css2/page.html

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,30 +28,30 @@ <h1>13 <a name="the-page">Paged media</a></h1>
2828
<div class="subtoc">
2929
<p><strong>Contents</strong>
3030
<ul class="toc">
31-
<li class="tocline2"><a href="page.html#q1" class="tocxref">13.1 Introduction to paged media</a>
31+
<li class="tocline2"><a href="page.html#page-intro" class="tocxref">13.1 Introduction to paged media</a>
3232
<li class="tocline2"><a href="page.html#page-box" class="tocxref">13.2 Page boxes: the @page rule</a>
3333
<ul class="toc">
3434
<li class="tocline3"><a href="page.html#page-margins" class="tocxref">13.2.1 Page margins</a>
3535
<ul class="toc">
36-
<li class="tocline4"><a href="page.html#q4" class="tocxref">13.2.1.1 Rendering page boxes that do not fit a target sheet</a>
37-
<li class="tocline4"><a href="page.html#q5" class="tocxref">13.2.1.2 Positioning the page box on the sheet</a>
36+
<li class="tocline4"><a href="page.html#oversized-page-box" class="tocxref">13.2.1.1 Rendering page boxes that do not fit a target sheet</a>
37+
<li class="tocline4"><a href="page.html#positioning-page-box" class="tocxref">13.2.1.2 Positioning the page box on the sheet</a>
3838
</ul>
39-
<li class="tocline3"><a href="page.html#q6" class="tocxref">13.2.2 Page selectors: selecting left, right, and first pages</a>
40-
<li class="tocline3"><a href="page.html#q7" class="tocxref">13.2.3 Content outside the page box</a>
39+
<li class="tocline3"><a href="page.html#page-selectors" class="tocxref">13.2.2 Page selectors: selecting left, right, and first pages</a>
40+
<li class="tocline3"><a href="page.html#outside-page-box" class="tocxref">13.2.3 Content outside the page box</a>
4141
</ul>
4242
<li class="tocline2"><a href="page.html#page-breaks" class="tocxref">13.3 Page breaks</a>
4343
<ul class="toc">
4444
<li class="tocline3"><a href="page.html#page-break-props" class="tocxref">13.3.1 Page break properties: <span class="propinst-page-break-before">'page-break-before'</span>, <span class="propinst-page-break-after">'page-break-after'</span>, <span class="propinst-page-break-inside">'page-break-inside'</span></a>
4545
<li class="tocline3"><a href="page.html#break-inside" class="tocxref">13.3.2 Breaks inside elements: <span class="propinst-orphans">'orphans'</span>, <span class="propinst-widows">'widows'</span></a>
4646
<li class="tocline3"><a href="page.html#allowed-page-breaks" class="tocxref">13.3.3 Allowed page breaks</a>
4747
<li class="tocline3"><a href="page.html#forced" class="tocxref">13.3.4 Forced page breaks</a>
48-
<li class="tocline3"><a href="page.html#q13" class="tocxref">13.3.5 "Best" page breaks</a>
48+
<li class="tocline3"><a href="page.html#best-page-breaks" class="tocxref">13.3.5 "Best" page breaks</a>
4949
</ul>
50-
<li class="tocline2"><a href="page.html#q14" class="tocxref">13.4 Cascading in the page context</a>
50+
<li class="tocline2"><a href="page.html#page-cascade" class="tocxref">13.4 Cascading in the page context</a>
5151
</ul>
5252
</div>
5353

54-
<h2><a name="q1">13.1 Introduction to paged media</a></h2>
54+
<h2>13.1 <a name="page-intro">Introduction to paged media</h2>
5555

5656
<p>Paged media (e.g., paper, transparencies, pages that are displayed
5757
on computer screens, etc.) differ from <a
@@ -160,20 +160,20 @@ <h3>13.2.1 <a name="page-margins">Page margins</a></h3>
160160

161161

162162

163-
<h4><a name="q4">13.2.1.1 Rendering page boxes that do not fit a target sheet</a></h4>
163+
<h4>13.2.1.1 <a name="oversized-page-box">Rendering page boxes that do not fit a target sheet</h4>
164164

165165
<P>If a page box does not fit the target sheet dimensions, the
166166
user agent may choose to:</p>
167167

168168
<UL>
169-
<LI>Rotate the page box 90° if this will make the page box fit.
169+
<LI>Rotate the page box 90 if this will make the page box fit.
170170
<LI>Scale the page to fit the target.
171171
</UL>
172172

173173
<P>The user agent should consult the user before performing these
174174
operations.
175175

176-
<h4><a name="q5">13.2.1.2 Positioning the page box on the sheet</a></h4>
176+
<h4>13.2.1.2 <a name="positioning-page-box">Positioning the page box on the sheet</h4>
177177

178178
<P>When the page box is smaller than the target size, the user agent
179179
is free to place the page box anywhere on the sheet. However, it is
@@ -182,7 +182,7 @@ <h4><a name="q5">13.2.1.2 Positioning the page box on the sheet</a></h4>
182182
is printed near the edge of the sheet.
183183

184184

185-
<h3><a name="q6">13.2.2 Page selectors: selecting left, right, and first pages</a></H3>
185+
<h3>13.2.2 <a name="page-selectors">Page selectors: selecting left, right, and first pages</H3>
186186

187187
<P>When printing double-sided documents, the <a href="#page-box">page
188188
boxes</a> on left and right pages may be different. This can be
@@ -239,7 +239,7 @@ <h3><a name="q6">13.2.2 Page selectors: selecting left, right, and first pages</
239239
of the first page should be used.
240240

241241

242-
<h3 id="outside-page-box"><a name="q7">13.2.3 Content outside the page box</a></h3>
242+
<h3>13.2.3 <a name="outside-page-box">Content outside the page box</a></h3>
243243

244244
<P>When formatting content in the page model, some content may end up
245245
outside the page box. For example, an element whose <a href="text.html#propdef-white-space" class="noxref"><span
@@ -496,7 +496,7 @@ <h3>13.3.4 <a name="forced">Forced page breaks</a></h3>
496496
margin, there is at least one with the value 'always', 'left', or
497497
'right'.
498498

499-
<h3><a name="q13">13.3.5 "Best" page breaks</a></h3>
499+
<h3>13.3.5 <a name="best-page-breaks">"Best" page breaks</h3>
500500

501501
<p>CSS&nbsp;2.1 does <em>not</em> define which of a set of allowed page breaks
502502
must be used; CSS&nbsp;2.1 does not forbid a user agent from breaking at every
@@ -550,7 +550,7 @@ <h3><a name="q13">13.3.5 "Best" page breaks</a></h3>
550550
</ul>
551551
</div>
552552

553-
<h2><a name="q14">13.4 Cascading in the page context</a></H2>
553+
<h2>13.4 <a name="page-cascade">Cascading in the page context</a></H2>
554554

555555
<P>Declarations in the <a href="#page-context">page context</a> obey
556556
the <a href="cascade.html">cascade</a> just like normal CSS

css2/page.src

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
22
<html lang="en">
3-
<!-- $Id: page.src,v 2.50 2007-07-10 17:03:50 fantasai Exp $ -->
3+
<!-- $Id: page.src,v 2.51 2007-07-17 03:07:48 fantasai Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Paged media</TITLE>
@@ -9,7 +9,7 @@
99
<body>
1010
<h1><a name="the-page">Paged media</a></h1>
1111

12-
<h2>Introduction to paged media</h2>
12+
<h2><a name="page-intro">Introduction to paged media</h2>
1313

1414
<p>Paged media (e.g., paper, transparencies, pages that are displayed
1515
on computer screens, etc.) differ from <a
@@ -117,20 +117,20 @@ the paper cutter.
117117

118118

119119

120-
<h4>Rendering page boxes that do not fit a target sheet</h4>
120+
<h4><a name="oversized-page-box">Rendering page boxes that do not fit a target sheet</h4>
121121

122122
<P>If a page box does not fit the target sheet dimensions, the
123123
user agent may choose to:</p>
124124

125125
<UL>
126-
<LI>Rotate the page box 90� if this will make the page box fit.
126+
<LI>Rotate the page box 90� if this will make the page box fit.
127127
<LI>Scale the page to fit the target.
128128
</UL>
129129

130130
<P>The user agent should consult the user before performing these
131131
operations.
132132

133-
<h4>Positioning the page box on the sheet</h4>
133+
<h4><a name="positioning-page-box">Positioning the page box on the sheet</h4>
134134

135135
<P>When the page box is smaller than the target size, the user agent
136136
is free to place the page box anywhere on the sheet. However, it is
@@ -139,7 +139,7 @@ align double-sided pages and avoid accidental loss of information that
139139
is printed near the edge of the sheet.
140140

141141

142-
<h3>Page selectors: selecting left, right, and first pages</H3>
142+
<h3><a name="page-selectors">Page selectors: selecting left, right, and first pages</H3>
143143

144144
<P>When printing double-sided documents, the <a href="#page-box">page
145145
boxes</a> on left and right pages may be different. This can be
@@ -196,7 +196,7 @@ on left, right, and first pages. In this case, the page area width
196196
of the first page should be used.
197197

198198

199-
<h3 id="outside-page-box">Content outside the page box</h3>
199+
<h3> <a name="outside-page-box">Content outside the page box</a></h3>
200200

201201
<P>When formatting content in the page model, some content may end up
202202
outside the page box. For example, an element whose <span
@@ -378,7 +378,7 @@ properties of all the elements generating boxes that meet at this
378378
margin, there is at least one with the value 'always', 'left', or
379379
'right'.
380380

381-
<h3>"Best" page breaks</h3>
381+
<h3><a name="best-page-breaks">"Best" page breaks</h3>
382382

383383
<p>CSS&nbsp;2.1 does <em>not</em> define which of a set of allowed page breaks
384384
must be used; CSS&nbsp;2.1 does not forbid a user agent from breaking at every
@@ -432,7 +432,7 @@ as a block to the next page.
432432
</ul>
433433
</div>
434434

435-
<h2>Cascading in the page context</H2>
435+
<h2><a name="page-cascade">Cascading in the page context</a></H2>
436436

437437
<P>Declarations in the <a href="#page-context">page context</a> obey
438438
the <a href="cascade.html">cascade</a> just like normal CSS

0 commit comments

Comments
 (0)