Skip to content

Commit d96aa61

Browse files
committed
x
1 parent 6ed1d45 commit d96aa61

1 file changed

Lines changed: 58 additions & 40 deletions

File tree

css3-gcpm/Overview.html

Lines changed: 58 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,15 @@ <h2 class="no-num no-toc" id=table-of-contents><a name=contents>Table of
258258
</span>The &lsquo;<code class=property>first-page</code>&rsquo;
259259
pseudo-element</a>
260260

261-
<li><a href="#selecting-columns-and-pages"><span class=secno>16.
262-
</span>Selecting columns and pages</a>
261+
<li><a href="#selecting-columns0"><span class=secno>16. </span>Selecting
262+
columns</a>
263263

264-
<li><a href="#conformance"><span class=secno>17. </span>Conformance</a>
264+
<li><a href="#selecting-pages-"><span class=secno>17. </span>Selecting
265+
pages </a>
265266

266-
<li><a href="#appendix-a-default-style-sheet"><span class=secno>18.
267+
<li><a href="#conformance"><span class=secno>18. </span>Conformance</a>
268+
269+
<li><a href="#appendix-a-default-style-sheet"><span class=secno>19.
267270
</span>Appendix A: Default style sheet</a>
268271

269272
<li class=no-num><a href="#acknowledgments">Acknowledgments</a>
@@ -3614,9 +3617,11 @@ <h3 id=turning-columns-into-regions><span class=secno>14.2. </span>Turning
36143617
&lt;/article>
36153618
</pre>
36163619
</div>
3620+
<!--
3621+
<div class=example>
3622+
Consider this markup:
36173623
3618-
<div class=example> Consider this markup:
3619-
<pre>
3624+
<pre>
36203625
&lt;div class=text>
36213626
&lt;div lang=en>
36223627
Some words in English ...
@@ -3627,10 +3632,10 @@ <h3 id=turning-columns-into-regions><span class=secno>14.2. </span>Turning
36273632
&lt;/div>
36283633
</pre>
36293634
3630-
<p>Here is the CSS code to lay these out into two columns with different
3631-
background colors:
3635+
<p>Here is the CSS code to lay these out into two columns with
3636+
different background colors:
36323637
3633-
<pre>
3638+
<pre>
36343639
div.text {
36353640
columns: 32em;
36363641
}
@@ -3646,9 +3651,10 @@ <h3 id=turning-columns-into-regions><span class=secno>14.2. </span>Turning
36463651
}
36473652
</pre>
36483653
3649-
<p>This example shows that use cases that first seem to require regions
3650-
may be achieved with other methods.
3651-
</div>
3654+
<p>This example shows that use cases that first seem to require regions may be achieved with other methods.
3655+
3656+
</div>
3657+
-->
36523658
<!--
36533659
<div class=example>
36543660
<pre>
@@ -3695,8 +3701,7 @@ <h2 id=the-first-page-pseudo-element><span class=secno>15. </span>The
36953701
</pre>
36963702
</div>
36973703

3698-
<h2 id=selecting-columns-and-pages><span class=secno>16. </span>Selecting
3699-
columns and pages</h2>
3704+
<h2 id=selecting-columns0><span class=secno>16. </span>Selecting columns</h2>
37003705

37013706
<p class=issue>This is sketchy.
37023707

@@ -3729,26 +3734,33 @@ <h2 id=selecting-columns-and-pages><span class=secno>16. </span>Selecting
37293734
}
37303735
</pre>
37313736
<img src="regions_rotated_columns.jpg"></div>
3732-
<!--
37333737

3734-
<h2>Page selection: nth()</h2>
3738+
<h2 id=selecting-pages-><span class=secno>17. </span>Selecting pages</h2>
37353739

3736-
<p>In CSS 2.0, <a href="http://www.w3.org/TR/CSS2/page.html#page-selectors">first, left and right pages</a> can be selected. This specification adds support for selecting the nth page in the document, or the nth named page.
3740+
<p>In CSS 2.0, <a
3741+
href="http://www.w3.org/TR/CSS2/page.html#page-selectors">first, left and
3742+
right pages</a> can be selected. This specification adds support for
3743+
selecting the nth page in the document, or the nth named page.
37373744

3738-
<div class=example>
3739-
<p>This example sets the background color of the second page in the document:
3745+
<div class=example>
3746+
<p>This example sets the background color of the second page in the
3747+
document:
37403748

3741-
<pre>
3749+
<pre>
37423750
@page :nth(2) {
37433751
background: green;
37443752
}
3745-
<pre>
3746-
</div>
3753+
</pre>
37473754

3748-
<div class=example>
3749-
<p>This example sets the background color of the second page of all chapters in a document:
3755+
<pre>
3756+
</pre>
3757+
</div>
37503758

3751-
<pre>
3759+
<div class=example>
3760+
<p>This example sets the background color of the second page of all
3761+
chapters in a document:
3762+
3763+
<pre>
37523764
@page chapter {
37533765
background: yellow;
37543766
}
@@ -3758,25 +3770,33 @@ <h2>Page selection: nth()</h2>
37583770
div.chapter {
37593771
page: chapter;
37603772
}
3761-
<pre>
3762-
</div>
3773+
</pre>
37633774

3764-
<p>The arguments to the nth() functional notation is the same as for the <a href="http://www.w3.org/TR/css3-selectors/#nth-child-pseudo">nth-child()</a> pseudo-class.
3775+
<pre>
3776+
</pre>
3777+
</div>
37653778

3766-
<div class="example">
3767-
<pre>
3779+
<p>The arguments to the nth() functional notation is the same as for the <a
3780+
href="http://www.w3.org/TR/css3-selectors/#nth-child-pseudo">nth-child()</a>
3781+
pseudo-class.
3782+
3783+
<div class=example>
3784+
<pre>
37683785
@page chapter:nth(2n+1) {
37693786
background: green;
37703787
}
37713788
</pre>
3772-
</div>
3789+
</div>
37733790

3774-
<p>Even when a named page is not defined through an <code>@page <em>name</em> { .. }</code> construct, the name can still be used with :nth().
3791+
<p>Even when a named page is not defined through an <code>@page
3792+
<em>name</em> { .. }</code> construct, the name can still be used with
3793+
:nth().
37753794

3776-
<div class="example">
3777-
<p>Even when the first line is commented out, the second page of all chapters in the document will be green.
3795+
<div class=example>
3796+
<p>Even when the first line is commented out, the second page of all
3797+
chapters in the document will be green.
37783798

3779-
<pre>
3799+
<pre>
37803800
/* @page chapter { ... } */
37813801

37823802
@page chapter:nth(2) {
@@ -3785,15 +3805,13 @@ <h2>Page selection: nth()</h2>
37853805

37863806
div.chapter { page: chapter }
37873807
</pre>
3788-
</div>
3789-
3790-
-->
3808+
</div>
37913809

3792-
<h2 id=conformance><span class=secno>17. </span>Conformance</h2>
3810+
<h2 id=conformance><span class=secno>18. </span>Conformance</h2>
37933811

37943812
<p>TBD
37953813

3796-
<h2 id=appendix-a-default-style-sheet><span class=secno>18. </span>Appendix
3814+
<h2 id=appendix-a-default-style-sheet><span class=secno>19. </span>Appendix
37973815
A: Default style sheet</h2>
37983816

37993817
<pre>

0 commit comments

Comments
 (0)