11<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22<html lang="en">
3- <!-- $Id: page.src,v 2.17 1998-03-23 02:44:28 bbos Exp $ -->
3+ <!-- $Id: page.src,v 2.18 1998-03-24 13:08:26 bbos Exp $ -->
44<HEAD>
55<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66<TITLE>Paged media</TITLE>
@@ -72,8 +72,7 @@ href="visuren.html#containing-block">containing block</a> for layout
7272that occurs between page breaks. It also acts as the <a
7373href="visuren.html#initial-containing-block">initial containing
7474block</a>.
75- <li>The margin area (see the <a href="box.html#box-margin-area">
76- margin area</a> of the box model).
75+ <li>The margin area.
7776</ul>
7877
7978<div class="note"><P>
@@ -94,7 +93,7 @@ context</dfn></a></span>).</p>
9493<P>The <span class="index-def" title="page selector"><dfn>page
9594selector</dfn></span> specifies for which pages the declarations
9695apply. In CSS2, page selectors may designate the first page,
97- all left pages, all right pages, or a page assigned a specific name.
96+ all left pages, all right pages, or a page with a specific name.
9897</p>
9998
10099<P>The dimensions of the page box are set with the <span
@@ -123,10 +122,12 @@ relationships between the sheet, page box, and page margins:</P>
123122
124123<P><img src="./images/page-info.gif" alt="Illustration of sheet, page box, and margin."></p>
125124
126- <P>The CSS2 rules for <a
125+ <P>The actual value of element margins that fall at the top or
126+ bottom of a page is set to 0.
127+ <!-- The CSS2 rules for <a
127128href="box.html#collapsing-margins">collapsing vertical margins</a>
128129apply to page margins as well. For example, the margin of the first
129- box on a page will collapse with the page margin.
130+ box on a page will collapse with the page margin. -->
130131
131132<p>The <a href="#page-context">page context</a> has no notion of
132133fonts, so 'em' and 'ex' units are not allowed. Percentage values on
@@ -242,23 +243,7 @@ class="propinst-marks">'marks'</span> property</h3>
242243<p>In high-quality printing, marks are often added outside the
243244page box. This property specifies whether cross
244245marks or crop marks or both should be rendered just outside the <a
245- href="#page-box">page box</a> edge. Values have the following
246- meanings:</p>
247-
248- <!--
249- <dl>
250- <dt><strong>crop</strong>
251- <dd><span class="index-def" title="crop marks"><dfn>Crop
252- marks</dfn></span> indicate where the page should be cut.
253- <dt><strong>cross</strong>
254- <dd><span
255- class="index-def" title="cross marks"><dfn>Cross marks</dfn></span>
256- (also known as register marks or registration marks) are used to align
257- sheets.
258- <dt><strong>none</strong>
259- <dd>Don't render any special marks.
260- </dl>
261- -->
246+ href="#page-box">page box</a> edge.
262247
263248<p><span class="index-def" title="crop marks"><dfn>Crop
264249marks</dfn></span> indicate where the page should be cut. <span
@@ -322,7 +307,7 @@ title=":first|pseudo-class:::first">:first</span> pseudo-class:
322307
323308<P>Whether the first page of a document is :left or :right depends on
324309the major writing direction of the document and is outside the scope
325- of this document. However, to force a :left or :right first page,
310+ of this document. <!-- is this true? BB --> However, to force a :left or :right first page,
326311authors may insert a page break before the first generated box (e.g.,
327312in HTML, specify this for the BODY element).
328313
@@ -354,8 +339,7 @@ outside the page box. For example, an element whose <span
354339class="propinst-white-space">'white-space'</span> property has the
355340value 'pre' may generate a box that is wider than the page box. Also,
356341when boxes are positioned <a
357- href="visuren.html#absolute-positioning">absolutely</a> or <a
358- href="visuren.html#floats">floated</a>, they may end up in
342+ href="visuren.html#absolute-positioning">absolutely</a>, they may end up in
359343"inconvenient" locations. For example, images may be placed on the
360344edge of the page box or 100,000 inches below the page box.
361345
@@ -402,8 +386,9 @@ href="conform.html#doctree">document tree</a> to be laid out in a new
402386page box.
403387
404388<h3><a name="page-break-props">Break before/after elements</a>: <span
405- class="propinst-page-break-before">'page-break-before'</span> and
406- <span class="propinst-page-break-after">'page-break-after'</span>
389+ class="propinst-page-break-before">'page-break-before'</span>,
390+ <span class="propinst-page-break-after">'page-break-after'</span>,
391+ <span class="propinst-page-break-inside">'page-break-inside'</span>
407392</h3>
408393
409394<!-- #include src=properties/page-break-before.srb -->
@@ -424,18 +409,18 @@ generated box.</dd>
424409<dt><strong>avoid</strong></dt>
425410<dd>Avoid a page break before (after, inside) the generated box.
426411<dt><strong>left</strong></dt>
427- <dd>(For rendering to left and right sheets.)
412+ <dd>
428413Force one or two page breaks before
429414(after) the generated box
430- so that the next page is formated as a left page.</dd>
415+ so that the next page is formatted as a left page.</dd>
431416<dt><strong>right</strong></dt>
432- <dd>(For rendering to left and right sheets.)
417+ <dd>
433418Force one or two page breaks before (after) the generated
434419box so that the next page is formatted as a right page.</dd>
435420</dl>
436421
437422<P> A potential page break location is typically under the influence
438- of the element's <span
423+ of the parent element's <span
439424class="propinst-page-break-inside">'page-break-inside'</span>
440425property, the <span
441426class="propinst-page-break-after">'page-break-after'</span> property
@@ -473,7 +458,8 @@ follows: If a block box with inline content has a <span
473458class="propinst-page">'page'</span> property that is different from
474459the preceding block box with inline content, then one or two
475460page breaks are inserted between them, and the boxes after the break
476- are rendered onto a page box of the named type.
461+ are rendered onto a page box of the named type. See <a
462+ href="#forced">"Forced page breaks" below.</a>
477463
478464<div class="example">
479465<p>In this example, the two tables are rendered on landscape pages
@@ -536,7 +522,7 @@ section on <a href="visuren.html#line-box">line boxes</a>.
536522<ol>
537523<li>
538524In the vertical margin between block boxes. When a page
539- break occurs here, the <a href="cascade.html#computed -value">computed
525+ break occurs here, the <a href="cascade.html#actual -value">actual
540526values</a>
541527of the relevant
542528<span class="propinst-margin-top">'margin-top'</span>
@@ -548,29 +534,29 @@ inside a <a href="visuren.html#block-box">block</a> box.
548534
549535<p>These breaks are subject to the following rules:
550536
551- <ol style="list-style-type: upper-alpha" >
552- <li>Breaking at (1) is allowed only if the <span
537+ <ul >
538+ <li><strong>Rule A:</strong> Breaking at (1) is allowed only if the <span
553539class="propinst-page-break-after">'page-break-after'</span> and <span
554540class="propinst-page-break-before">'page-break-before'</span> properties of all
555541the elements generating boxes that
556542meet at this margin allow it, which is when at least
557543one of them has the value 'always', 'left', or 'right', or when all of them are
558544'auto'.
559545
560- <li>However, if the nearest common ancestor of all the elements
561- meeting at this margin has a <span
562- class="propinst-page-break-inside">'page-break-inside'</span> value
563- of 'avoid', then breaking here is not allowed.
546+ <li><strong>Rule B:</strong> However, if all of them are 'auto' and
547+ the nearest common ancestor of all the elements has a <span
548+ class="propinst-page-break-inside">'page-break-inside'</span> value of
549+ 'avoid', then breaking here is not allowed.
564550
565551<li>
566- <p> Breaking at (2) is allowed only if the number of <a
552+ <strong>Rule C:</strong> Breaking at (2) is allowed only if the number of <a
567553href="visuren.html#line-box">line boxes</a> between the
568554break and the start of the enclosing block box is <span
569555class="propinst-orphans">'orphans'</span> or more, and the number of
570556line boxes between the break and the end of the box is <span
571557class="propinst-widows">'widows'</span> or more.
572558
573- <li>In addition, breaking at (2) is allowed only if the <span
559+ <li><strong>Rule D:</strong> In addition, breaking at (2) is allowed only if the <span
574560class="propinst-page-break-inside">'page-break-inside'</span> property
575561is 'auto'.
576562</ol>
@@ -587,7 +573,7 @@ href="visuren.html#absolute-positioning">absolutely-positioned</a>.
587573
588574<!-- What about relative positioning? -IJ -->
589575
590- <h3>Forced page breaks</h3>
576+ <h3><a name="forced"> Forced page breaks</a> </h3>
591577
592578<p>A page break <em>must</em> occur at (1) if, among the <span
593579class="propinst-page-break-after">'page-break-after'</span> and <span
0 commit comments