Skip to content

Commit 4b8aaab

Browse files
committed
Shift explanation about page box's containing block into Page Model section. <http://www.w3.org/mid/4EE20B46.3070106@kozea.fr>
1 parent 5fd276c commit 4b8aaab

2 files changed

Lines changed: 48 additions & 46 deletions

File tree

css3-page/Overview.html

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -557,16 +557,30 @@ <h2 id=page-box-page-rule><span class=secno>4. </span>The Page Model</h2>
557557
display running headers and footers.
558558
</ul>
559559

560-
<p>The properties of a <dfn id=page-box0>page box</dfn> are determined by
561-
properties <a href="/TR/CSS21/syndata.html#declaration">declared</a>
562-
within the <dfn id=page-context0><a href="#page-context">page
563-
context</a></dfn>, which is the <a
560+
<p>The properties of a <a href="#page-box"><i>page box</i></a> are
561+
determined by properties <a
562+
href="/TR/CSS21/syndata.html#declaration">declared</a> within the <a
563+
href="#page-context"><i>page context</i></a>, which is the <a
564564
href="/TR/CSS21/syndata.html#x14">declaration block</a> of the <a
565-
href="#page"><code>@page</code></a> rule.
566-
567-
<p>Declarations in the page context can affect the page box and/or inherit
568-
to the margin boxes, but they do not apply to or inherit into the
569-
document's root element or other content.</p>
565+
href="#page"><code>@page</code></a> rule. Similarly the properties of a
566+
<i>margin box</i> are determined by properties declared within its <a
567+
href="#margin-context"><i>margin context</i></a>. Declarations in the
568+
page context can affect the page box and/or inherit to the margin boxes,
569+
but they do not apply to or inherit into the document's root element or
570+
other content.</p>
571+
572+
<p>The <a href="#containing-block0"><i>containing block</i></a> of the
573+
page box is specified using the ‘<a href="#size"><code
574+
class=property>size</code></a>’ property in the <a
575+
href="#page-context"><i>page context</i></a>. The width and horizontal
576+
margins of the page box are then calculated exactly as for a <a
577+
href="http://www.w3.org/TR/CSS21/visudet.html#blockwidth">non-replaced
578+
block element in normal flow</a>. <a href="#CSS21"
579+
rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a> The height and vertical
580+
margins of the page box are calculated analogously (instead of using the
581+
block height formulas). In both cases if the values are over-constrained,
582+
instead of ignoring any margins, the containing block is resized to
583+
coincide with the margin edges of the page box.
570584

571585
<h3 id=content-outside-box><span class=secno>4.1. </span>Content outside
572586
the page box</h3>
@@ -867,7 +881,7 @@ <h3 id=syntax-page-selector><span class=secno>5.3. </span>@page rule
867881

868882
<span
869883
id=syntax-prod-margin>margin_box</span> :
870-
margin_sym S* '{' declaration? [ ';' S* declaration? ]* '}' S*
884+
margin_sym S* '{' S* declaration? [ ';' S* declaration? ]* '}' S*
871885
;
872886

873887
<span
@@ -2022,18 +2036,6 @@ <h2 id=page-size><span class=secno>8. </span>Page Size</h2>
20222036
<h3 id=page-size-prop><span class=secno>8.1. </span>Page size: the ‘<a
20232037
href="#size"><code class=property>size</code></a>’ property</h3>
20242038

2025-
<p>The containing block of the page box is specified using the ‘<a
2026-
href="#size"><code class=property>size</code></a>’ property in the <a
2027-
href="#page-context"><i>page context</i></a>. The width and horizontal
2028-
margins of the page box are then calculated exactly as for a <a
2029-
href="http://www.w3.org/TR/CSS21/visudet.html#blockwidth">non-replaced
2030-
block element in normal flow</a>. <a href="#CSS21"
2031-
rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a> The height and vertical
2032-
margins of the page box are calculated analogously (instead of using the
2033-
block height formulas). In both cases if the values are
2034-
over-constrained, instead of ignoring any margins, the containing block
2035-
is resized to coincide with the margin edges of the page box.
2036-
20372039
<table class=propdef summary="definition of the size property">
20382040
<tbody>
20392041
<tr>
@@ -2079,10 +2081,10 @@ <h3 id=page-size-prop><span class=secno>8.1. </span>Page size: the ‘<a
20792081
</table>
20802082

20812083
<p>This property specifies the target size and orientation of the <a
2082-
href="#page-box">page box</a>. In the general case, where one page box
2083-
is rendered onto one <a href="#page-sheet">page sheet</a>, the <a
2084-
class=property href="#size"><code class=property>size</code></a>
2085-
property also indicates the size of the destination page sheet.</p>
2084+
href="#page-box">page box</a><code class=css>s containing block. In
2085+
the general case, where one page box is rendered onto one <a
2086+
href="#page-sheet">page sheet</a>, the </code>’size' property also
2087+
indicates the size of the destination page sheet.
20862088

20872089
<p>The size of a page box can either be "absolute" (fixed size) or
20882090
"relative" (scalable, i.e., fitting available sheet sizes).</p>

css3-page/Overview.src.html

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -314,16 +314,27 @@ <h2 id="page-box-page-rule">The Page Model</h2>
314314
boxes are typically used to display running headers and footers.</li>
315315
</ul>
316316

317-
<p>The properties of a <dfn>page box</dfn> are determined by properties
317+
<p>The properties of a <i>page box</i> are determined by properties
318318
<a href="/TR/CSS21/syndata.html#declaration">declared</a> within the
319-
<dfn><a href="#page-context">page context</a></dfn>, which is the
319+
<i>page context</i>, which is the
320320
<a href="/TR/CSS21/syndata.html#x14">declaration block</a> of the
321-
<code>@page</code> rule.
322-
323-
<p>Declarations in the page context can affect the page box and/or inherit
321+
<code>@page</code> rule. Similarly the properties of a <i>margin box</i>
322+
are determined by properties declared within its <i>margin context</i>.
323+
Declarations in the page context can affect the page box and/or inherit
324324
to the margin boxes, but they do not apply to or inherit into the
325325
document's root element or other content.</p>
326326

327+
<p>The <i>containing block</i> of the page box is specified using the 'size'
328+
property in the <i>page context</i>. The width and horizontal margins
329+
of the page box are then calculated exactly as for a
330+
<a href="http://www.w3.org/TR/CSS21/visudet.html#blockwidth">non-replaced
331+
block element in normal flow</a>. [[!CSS21]] The height and vertical margins
332+
of the page box are calculated analogously (instead of using the block height
333+
formulas). In both cases if the values are over-constrained, instead of
334+
ignoring any margins, the containing block is resized to coincide with the
335+
margin edges of the page box.
336+
337+
327338
<h3 id="content-outside-box">Content outside the page box</h3>
328339

329340
<p>When formatting content in the page model, some content may end up outside the
@@ -571,7 +582,7 @@ <h3 id="syntax-page-selector">@page rule grammar</h3>
571582
;
572583

573584
<span id="syntax-prod-margin">margin_box</span> :
574-
margin_sym S* '{' declaration? [ ';' S* declaration? ]* '}' S*
585+
margin_sym S* '{' S* declaration? [ ';' S* declaration? ]* '}' S*
575586
;
576587

577588
<span id="syntax-prod-margin-sym">margin_sym</span> :
@@ -1465,16 +1476,6 @@ <h2 id="page-size">Page Size</h2>
14651476

14661477
<h3 id="page-size-prop">Page size: the 'size' property</h3>
14671478

1468-
<p>The containing block of the page box is specified using the 'size'
1469-
property in the <i>page context</i>. The width and horizontal margins
1470-
of the page box are then calculated exactly as for a
1471-
<a href="http://www.w3.org/TR/CSS21/visudet.html#blockwidth">non-replaced
1472-
block element in normal flow</a>. [[!CSS21]] The height and vertical margins
1473-
of the page box are calculated analogously (instead of using the block height
1474-
formulas). In both cases if the values are over-constrained, instead of
1475-
ignoring any margins, the containing block is resized to coincide with the
1476-
margin edges of the page box.
1477-
14781479
<table class="propdef" summary="definition of the size property">
14791480
<tr>
14801481
<th>Name:
@@ -1503,10 +1504,9 @@ <h3 id="page-size-prop">Page size: the 'size' property</h3>
15031504
</table>
15041505

15051506
<p>This property specifies the target size and orientation of the
1506-
<a href="#page-box">page box</a>. In the general case, where one
1507-
page box is rendered onto one <a href="#page-sheet">page sheet</a>, the
1508-
<span class="property">'size'</span> property also indicates the size of the
1509-
destination page sheet.</p>
1507+
<a href="#page-box">page box</a>'s containing block.
1508+
In the general case, where one page box is rendered onto one <a href="#page-sheet">page sheet</a>,
1509+
the 'size' property also indicates the size of the destination page sheet.
15101510

15111511
<p>The size of a page box can either be "absolute" (fixed size) or "relative"
15121512
(scalable, i.e., fitting available sheet sizes).</p>

0 commit comments

Comments
 (0)