11<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22<html lang="en">
3- <!-- $Id: page.src,v 2.22 1998-04-16 22:13:41 ijacobs Exp $ -->
3+ <!-- $Id: page.src,v 2.23 1998-04-17 19:10:12 ijacobs Exp $ -->
44<HEAD>
55<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66<TITLE>Paged media</TITLE>
@@ -25,8 +25,8 @@ model</a> to allow authors to specify the size of a page, its margins,
2525etc.
2626
2727<li>The <span class="index-def" title="page model"><dfn>page
28- model</dfn></span> extends the visual rendering layout model to
29- account for <a href="#page-breaks">page breaks.</a>
28+ model</dfn></span> extends the <a href="visuren.html"> visual rendering
29+ model</a> to account for <a href="#page-breaks">page breaks.</a>
3030</ol>
3131
3232<P>The CSS2 <a name="page-model">page model</a> specifies how a
@@ -60,19 +60,16 @@ orientation</a>.
6060<H2><a name="page-box">Page boxes</a>: the @page rule</H2>
6161
6262<P>The <span class="index-def" title="page box"><dfn>page
63- box</dfn></span> is a rectangular region that contains two
64- embedded areas:</p>
63+ box</dfn></span> is a rectangular region that contains two areas:</p>
6564
6665<ul>
6766<li>The <span class="index-def" title="page area"><a
6867name="page-area"><dfn>page area</dfn></a></span>. The page
6968area includes the boxes laid out on that page.
70- The edges of the page area act as a <a
71- href="visuren.html#containing-block">containing block</a> for layout
72- that occurs between page breaks. It also acts as the <a
73- href="visuren.html#initial-containing-block">initial containing
74- block</a>.
75- <li>The margin area.
69+ The edges of the page area act as the initial <a
70+ href="visuren.html#initial-containing-block">containing block</a>
71+ for layout that occurs between page breaks.
72+ <li>The margin area, which surrounds the page area.
7673</ul>
7774
7875<div class="note"><P>
@@ -98,18 +95,23 @@ all left pages, all right pages, or a page with a specific name.
9895</p>
9996
10097<P>The dimensions of the page box are set with the <span
101- class="propinst-size">'size'</span> property. The <span
102- class="propinst-marks">'marks'</span> property specifies crop and
103- cross marks.
98+ class="propinst-size">'size'</span> property. The dimensions
99+ of the page area are the dimensions of the page box minus
100+ the margin area.
104101
105102<div class="example"><P>
106- For example, the following @page rule sets the margins of the page to 2cm.
103+ For example, the following @page rule sets the
104+ page box size to 8.5 x 11 inches and creates '2cm' margin
105+ on all sides between the page box edge and the page area:</p>
107106
108107<pre>
109- @page { margin: 2cm }
108+ @page { size 8.5in 11in; margin: 2cm }
110109</pre>
111110</div>
112111
112+ The <span class="propinst-marks">'marks'</span> property in an @page
113+ rule specifies crop and cross marks for the page box.
114+
113115<h3><a name="page-margins">Page margins</a></h3>
114116
115117<P>The <a href="box.html#margin-properties">margin properties</a>
@@ -121,14 +123,13 @@ class="propinst-margin">'margin'</span>) apply within the <a
121123href="#page-context">page context</a>. The following diagram shows the
122124relationships between the sheet, page box, and page margins:</P>
123125
124- <P><img src="./images/page-info.gif" alt="Illustration of sheet, page box, and margin."></p>
126+ <div class="figure">
127+ <P><img src="./images/page-info.gif" alt="Illustration of sheet, page
128+ box, margin, and page area."></p>
129+ </div>
125130
126- <P>The actual value of element margins that fall at the top or
127- bottom of a page is set to 0.
128- <!-- The CSS2 rules for <a
129- href="box.html#collapsing-margins">collapsing vertical margins</a>
130- apply to page margins as well. For example, the margin of the first
131- box on a page will collapse with the page margin. -->
131+ <P>The actual value of box margins at the top or bottom of the page
132+ area is '0'.
132133
133134<p>The <a href="#page-context">page context</a> has no notion of
134135fonts, so 'em' and 'ex' units are not allowed. Percentage values on
@@ -217,7 +218,7 @@ being printed).
217218
218219<h4>Rendering page boxes that do not fit a target sheet</h4>
219220
220- <P>If the page box does not fit the target sheet dimensions, the
221+ <P>If a page box does not fit the target sheet dimensions, the
221222user agent may choose to:</p>
222223
223224<UL>
@@ -367,7 +368,7 @@ just to avoid rendering them. Instead:
367368<ul>
368369<li>To suppress box generation entirely, set the <span
369370class="propinst-display">'display'</span> property to 'none'.
370- <li>To render a box invisible, use the <span
371+ <li>To make a box invisible, use the <span
371372class="propinst-visibility">'visibility'</span> property.
372373</ul>
373374
@@ -534,6 +535,8 @@ properties are set to '0'.
534535inside a <a href="visuren.html#block-box">block</a> box.
535536</ol>
536537
538+ <!-- What about line boxes next to a float? -IJ -->
539+
537540<p>These breaks are subject to the following rules:
538541
539542<ul>
@@ -553,10 +556,11 @@ class="propinst-page-break-inside">'page-break-inside'</span> value of
553556<li>
554557<strong>Rule C:</strong> Breaking at (2) is allowed only if the number of <a
555558href="visuren.html#line-box">line boxes</a> between the
556- break and the start of the enclosing block box is <span
559+ break and the start of the enclosing block box is
560+ the value of <span
557561class="propinst-orphans">'orphans'</span> or more, and the number of
558- line boxes between the break and the end of the box is <span
559- class="propinst-widows">'widows'</span> or more.
562+ line boxes between the break and the end of the box is
563+ the value of <span class="propinst-widows">'widows'</span> or more.
560564
561565<li><strong>Rule D:</strong> In addition, breaking at (2) is allowed only if the <span
562566class="propinst-page-break-inside">'page-break-inside'</span> property
0 commit comments