Skip to content

Commit ffbd83c

Browse files
committed
Make 'page' counter behave like 'list-item' counter
1 parent dd6eff9 commit ffbd83c

2 files changed

Lines changed: 23 additions & 12 deletions

File tree

css3-page/Overview.html

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,14 @@
8787

8888
<h1>CSS Paged Media Module Level 3</h1>
8989

90-
<h2 class="no-num no-toc" id=w3c-working>Editor's Draft 3 March 2009</h2>
90+
<h2 class="no-num no-toc" id=w3c-working>Editor's Draft 9 March 2009</h2>
9191

9292
<dl>
9393
<dt>This version:
9494

9595
<dd><a
9696
href="http://dev.w3.org/csswg/css3-page/">http://dev.w3.org/csswg/css3-page/</a></dd>
97-
<!-- <dd><a href="http://www.w3.org/TR/2009/ED-css3-page-20090303">http://www.w3.org/TR/2009/WD-css3-page-20090303</a></dd> -->
97+
<!-- <dd><a href="http://www.w3.org/TR/2009/ED-css3-page-20090309">http://www.w3.org/TR/2009/WD-css3-page-20090309</a></dd> -->
9898

9999
<dt>Latest version:
100100

@@ -179,7 +179,7 @@ <h2 class="no-num no-toc" id=status>Status of this Document</h2>
179179
<!--end-status-->
180180
<p>This document contains the <abbr title="Cascading Style
181181
Sheets">CSS3</abbr> Paged Media Module W3C Last Call <a
182-
href="/2005/10/Process-20051014/tr.html#RecsWD">Working Draft</a> of 3
182+
href="/2005/10/Process-20051014/tr.html#RecsWD">Working Draft</a> of 9
183183
March 2009. The Last Call period ends on <span class=fudge>TBD</span>.</p>
184184

185185
<p>Relative to the previous Last Call Working Draft, this version
@@ -1818,12 +1818,19 @@ <h3 id=page-based-counters><span class=secno>7.1 </span>Page-based
18181818
counter in this way does not affect the calculation of the counter's
18191819
value.</p>
18201820

1821-
<p>In the absence of a &lsquo;<code
1822-
class=property>counter-reset</code>&rsquo; or &lsquo;<code
1823-
class=property>counter-increment</code>&rsquo; for a counter named
1824-
&lsquo;<code class=property><a href="#page">page</a></code>&rsquo;, the
1825-
UA must automatically create and increment such a counter as if "@page {
1826-
counter-increment: page;}" were specified.</p>
1821+
<p>A counter named &lsquo;<code class=css><a
1822+
href="#page">page</a></code>&rsquo; is automatically created and
1823+
incremented on every page of the document. Specifically, the UA must
1824+
automatically create and increment such a counter as if &lsquo;<code
1825+
class=css>@page { counter-increment: page; }</code>&rsquo; were
1826+
specified. The implied &lsquo;<code class=css><a
1827+
href="#page">page</a></code>&rsquo; counter is a real counter, and can
1828+
be directly affected using the &lsquo;<code
1829+
class=property>counter-increment</code>&rsquo; and &lsquo;<code
1830+
class=property>counter-reset</code>&rsquo; properties when named
1831+
explicitly in those properties. It can also be used in the &lsquo;<code
1832+
class=css>counter()</code>&rsquo; and &lsquo;<code
1833+
class=css>counters()</code>&rsquo; function forms.</p>
18271834

18281835
<p>In all other respects, page-associated counters behave as described in
18291836
<a href="#CSS21" rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a>, <a

css3-page/Overview.src.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,9 +1285,13 @@ <h3 id="page-based-counters">Page-based counters</h3>
12851285
flow that spans the page break. Use of the counter in this way does not affect
12861286
the calculation of the counter's value.</p>
12871287

1288-
<p>In the absence of a 'counter-reset' or 'counter-increment' for a counter named
1289-
'page', the UA must automatically create and increment such a counter as if
1290-
"@page { counter-increment: page;}" were specified.</p>
1288+
<p>A counter named ''page'' is automatically created and incremented on every
1289+
page of the document. Specifically, the UA must automatically create and
1290+
increment such a counter as if ''@page { counter-increment: page; }'' were
1291+
specified. The implied ''page'' counter is a real counter, and can be directly
1292+
affected using the 'counter-increment' and 'counter-reset' properties when
1293+
named explicitly in those properties. It can also be used in the 'counter()'
1294+
and 'counters()' function forms.</p>
12911295

12921296
<p>In all other respects, page-associated counters behave as described in
12931297
[[!CSS21]], <a href="TR/CSS21/generate.html#scope">Nested Counters and

0 commit comments

Comments
 (0)