Skip to content

Commit 832efb1

Browse files
committed
[css2] Some minor work on page-break-inside
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401211
1 parent 00ae6ea commit 832efb1

1 file changed

Lines changed: 26 additions & 22 deletions

File tree

css2/page.src

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<html lang="en">
3-
<!-- $Id: page.src,v 2.12 1998-03-14 23:43:11 ijacobs Exp $ -->
3+
<!-- $Id: page.src,v 2.13 1998-03-16 14:30:53 ijacobs Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Paged media</TITLE>
@@ -410,19 +410,19 @@ class="propinst-page-break-before">'page-break-before'</span> and
410410

411411
<!-- #include src=properties/page-break-after.srb -->
412412

413-
<!-- Add 'page' property for named pages. 27/2/98 -->
413+
<!-- #include src=properties/page-break-inside.srb -->
414414

415415
<P>Values for these properties have the following meanings:</p>
416416

417417
<dl>
418418
<dt><strong>auto</strong></dt>
419-
<dd>Neither force nor forbid a page break before (after) the
419+
<dd>Neither force nor forbid a page break before (after, inside) the
420420
generated box.
421421
<dt><strong>always</strong></dt>
422422
<dd>Always force a page break before (after) the
423423
generated box.</dd>
424424
<dt><strong>avoid</strong></dt>
425-
<dd>Avoid a page break before (after) the generated box.
425+
<dd>Avoid a page break before (after, inside) the generated box.
426426
<dt><strong>left</strong></dt>
427427
<dd>(For rendering to left and right sheets.)
428428
Force one or two page breaks before
@@ -435,15 +435,17 @@ box so that the next page is formatted as a right page.</dd>
435435
</dl>
436436

437437
<P> A potential page break location is typically under the influence
438-
of both the <span
438+
of the element's <span
439+
class="propinst-page-break-inside">'page-break-inside'</span>
440+
property, the <span
439441
class="propinst-page-break-after">'page-break-after'</span> property
440-
of the preceding element and the <span
442+
of the preceding element, and the <span
441443
class="propinst-page-break-before">'page-break-before'</span> property
442-
of the following element. When both properties have values other than
443-
'auto', the values 'always', 'left', and 'right' take precedence over
444-
'avoid'. See the section on <a href="#allowed-page-breaks">allowed
445-
page breaks</a> for the exact rules on how these values force or
446-
suppress a page break.
444+
of the following element. When these properties have values other
445+
than 'auto', the values 'always', 'left', and 'right' take precedence
446+
over 'avoid'. See the section on <a
447+
href="#allowed-page-breaks">allowed page breaks</a> for the exact
448+
rules on how these properties may force or suppress a page break.
447449

448450
<h3><a name="named-pages">Using named pages:</a> <span class="propinst-page">'page'</span></h3>
449451

@@ -505,8 +507,6 @@ class="propinst-page-break-inside">'page-break-inside'</span></h3>
505507

506508
<!-- #include src=properties/widows.srb -->
507509

508-
<!-- #include src=properties/page-break-inside.srb -->
509-
510510
<P>The <span class="propinst-orphans">'orphans'</span> property
511511
specifies the minimum number of lines of a paragraph that must be left
512512
at the bottom of a page. The <span
@@ -518,11 +518,13 @@ Examples of how they are used to control page breaks are given below.
518518
class="propinst-page-break-inside">'page-break-inside'</span> property
519519
can be used to turn off page breaking inside an element completely,
520520
i.e., keep the whole element on one page. The 'widows' and 'orphans'
521-
properties are not used if 'page-break-inside' is 'avoid'. However, if
522-
the element is larger than the page, so that it <em>has</em> to be
523-
broken, then the 'page-break-inside' property is ignored (treated as
524-
if it were 'auto') and page breaks are determined using the 'widows'
525-
and 'orphans' properties.
521+
properties are not used if <span
522+
class="propinst-page-break-inside">'page-break-inside'</span> is
523+
'avoid'. However, if the element is larger than the page, so that it
524+
<em>has</em> to be broken, then the <span
525+
class="propinst-page-break-inside">'page-break-inside'</span> property
526+
is ignored (treated as if it were 'auto') and page breaks are
527+
determined using the 'widows' and 'orphans' properties.
526528

527529
<P>For information about paragraph formatting, please consult the
528530
section on <a href="visuren.html#line-box">line boxes</a>.
@@ -556,8 +558,9 @@ one of them has the value 'always', 'left', or 'right', or when all of them are
556558
'auto'.
557559

558560
<li>However, if the nearest common ancestor of all the elements
559-
meeting at this margin has a 'page-break-inside' property of 'avoid',
560-
then breaking here is not allowed.
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.
561564

562565
<li>
563566
<p>Breaking at (2) is allowed only if the number of <a
@@ -567,8 +570,9 @@ class="propinst-orphans">'orphans'</span> or more, and the number of
567570
line boxes between the break and the end of the box is <span
568571
class="propinst-widows">'widows'</span> or more.
569572

570-
<li>In addition, breaking at (2) is allowed only if the
571-
'page-break-inside' property is 'auto'.
573+
<li>In addition, breaking at (2) is allowed only if the <span
574+
class="propinst-page-break-inside">'page-break-inside'</span> property
575+
is 'auto'.
572576
</ol>
573577

574578
<p>If the above doesn't provide enough break points to keep content

0 commit comments

Comments
 (0)