Skip to content

Commit 5c3a007

Browse files
committed
Make 'page' not inherit per 2008-11-05 F2F resolution http://lists.w3.org/Archives/Public/www-style/2008Nov/0024.html
1 parent 1546f35 commit 5c3a007

2 files changed

Lines changed: 38 additions & 6 deletions

File tree

css3-page/Overview.html

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2522,7 +2522,7 @@ <h3 id=using-named-pages><span class=secno>9.2 </span>Using named pages:
25222522
<tr>
25232523
<th>Value:
25242524

2525-
<td>&lt;identifier&gt;
2525+
<td>auto | &lt;identifier&gt;
25262526

25272527
<tr>
25282528
<th>Initial:
@@ -2537,7 +2537,7 @@ <h3 id=using-named-pages><span class=secno>9.2 </span>Using named pages:
25372537
<tr>
25382538
<th>Inherited:
25392539

2540-
<td>yes
2540+
<td>no (but see prose)
25412541

25422542
<tr>
25432543
<th>Percentages:
@@ -2577,7 +2577,27 @@ <h3 id=using-named-pages><span class=secno>9.2 </span>Using named pages:
25772577
that is different from the preceding block box with inline content, then
25782578
one or two page breaks are inserted between them, and the boxes after
25792579
the break are rendered on a page box of the named type. See <a
2580-
href="#forced-pg-brk">"Forced page breaks" below</a>.</p>
2580+
href="#forced-pg-brk">"Forced page breaks" below</a>.
2581+
2582+
<p>The &lsquo;<code class=property><a href="#page">page</a></code>&rsquo;
2583+
property does not inherit. However, if the &lsquo;<code
2584+
class=property><a href="#page">page</a></code>&rsquo; value on an
2585+
element is &lsquo;<code class=css>auto</code>&rsquo;, then it is treated
2586+
as having the same name as its nearest ancestor with a non-auto value.
2587+
When indicated on the root element, the effective name is the empty
2588+
string.</p>
2589+
2590+
<p>Because a previous version of this specification indicated that the
2591+
&lsquo;<code class=property><a href="#page">page</a></code>&rsquo;
2592+
property is inherited, an implementation that inherits the &lsquo;<code
2593+
class=property><a href="#page">page</a></code>&rsquo; property and
2594+
treats &lsquo;<code class=css>auto</code>&rsquo; as always naming the
2595+
empty string remains conformant to CSS3 Paged Media. Therefore authors
2596+
should not explicitly specify the &lsquo;<code
2597+
class=css>auto</code>&rsquo; value on a descendant of an element with a
2598+
non-&lsquo;<code class=css>auto</code>&rsquo; &lsquo;<code
2599+
class=property><a href="#page">page</a></code>&rsquo; value as the
2600+
resulting behavior will be unpredictable.
25812601

25822602
<div class=example>
25832603
<p>In this example, the two tables are rendered on landscape pages

css3-page/Overview.src.html

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1799,7 +1799,7 @@ <h3 id="using-named-pages">Using named pages: 'page'</h3>
17991799
<td><dfn id="page">page</dfn>
18001800
<tr>
18011801
<th>Value:
1802-
<td>&lt;identifier&gt;
1802+
<td>auto | &lt;identifier&gt;
18031803
<tr>
18041804
<th>Initial:
18051805
<td>auto
@@ -1808,7 +1808,7 @@ <h3 id="using-named-pages">Using named pages: 'page'</h3>
18081808
<td>block-level elements
18091809
<tr>
18101810
<th>Inherited:
1811-
<td>yes
1811+
<td>no (but see prose)
18121812
<tr>
18131813
<th>Percentages:
18141814
<td>N/A
@@ -1839,7 +1839,19 @@ <h3 id="using-named-pages">Using named pages: 'page'</h3>
18391839
that is different from the preceding block box with inline content, then one or
18401840
two page breaks are inserted between them, and the boxes after the break are
18411841
rendered on a page box of the named type. See <a href="#forced-pg-brk">"Forced
1842-
page breaks" below</a>.</p>
1842+
page breaks" below</a>.
1843+
1844+
<p>The 'page' property does not inherit. However, if the 'page' value on an
1845+
element is ''auto'', then it is treated as having the same name as its nearest
1846+
ancestor with a non-auto value. When indicated on the root element, the
1847+
effective name is the empty string.</p>
1848+
1849+
<p>Because a previous version of this specification indicated that the 'page'
1850+
property is inherited, an implementation that inherits the 'page' property and
1851+
treats ''auto'' as always naming the empty string remains conformant to CSS3
1852+
Paged Media. Therefore authors should not explicitly specify the ''auto''
1853+
value on a descendant of an element with a non-''auto'' 'page' value as the
1854+
resulting behavior will be unpredictable.
18431855

18441856
<div class="example">
18451857

0 commit comments

Comments
 (0)