Skip to content

Commit 5948078

Browse files
committed
allow breaks between end of content and bottom content edge, except when page-break-inside is avoid
1 parent ee8a844 commit 5948078

2 files changed

Lines changed: 14 additions & 6 deletions

File tree

css3-page/Overview.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2827,6 +2827,11 @@ <h3 id=allowed-pg-brk><span class=secno>9.4 </span>Allowed page breaks</h3>
28272827
class=property>margin-bottom</code>&rsquo; are set to zero.
28282828

28292829
<li id=brk-btw-lines>Between line boxes inside a block box.
2830+
2831+
<li id=brk-end-block>Between the bottom content edge of a block box and
2832+
the end of its child content (bottom margin edge of the last
2833+
block-level child or bottom edge of the last line box) <em>if</em> the
2834+
distance between them is positive.
28302835
</ol>
28312836

28322837
<p>These breaks are subject to the following rules:</p>
@@ -2865,11 +2870,10 @@ <h3 id=allowed-pg-brk><span class=secno>9.4 </span>Allowed page breaks</h3>
28652870
or more.
28662871

28672872
<li><strong>Rule D:</strong> In addition, breaking at <a
2868-
href="#brk-btw-blocks">(2)</a> is allowed only if the &lsquo;<code
2869-
class=property><a
2873+
href="#brk-btw-blocks">(2)</a> or <a href="#brk-end-block">(3)</a> is
2874+
allowed only if the &lsquo;<code class=property><a
28702875
href="#page-break-inside">page-break-inside</a></code>&rsquo; property
2871-
of all ancestors is <span class=css>&lsquo;<code
2872-
class=property>auto</code>&rsquo;</span>.
2876+
of all ancestors is &lsquo;<code class=css>auto</code>&rsquo;.
28732877
</ul>
28742878

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

css3-page/Overview.src.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2009,6 +2009,10 @@ <h3 id="allowed-pg-brk">Allowed page breaks</h3>
20092009
When an unforced page break occurs here, both the adjoining 'margin-top' and
20102010
'margin-bottom' are set to zero.</li>
20112011
<li id="brk-btw-lines">Between line boxes inside a block box.</li>
2012+
<li id="brk-end-block">Between the bottom content edge of a block box and
2013+
the end of its child content (bottom margin edge of the last block-level child
2014+
or bottom edge of the last line box) <em>if</em> the distance between them is
2015+
positive.
20122016
</ol>
20132017

20142018
<p>These breaks are subject to the following rules:</p>
@@ -2028,8 +2032,8 @@ <h3 id="allowed-pg-brk">Allowed page breaks</h3>
20282032
line boxes between the break and the end of the box is the value of 'widows'
20292033
or more.</li>
20302034
<li><strong>Rule D:</strong> In addition, breaking at <a href="#brk-btw-blocks">(2)</a>
2031-
is allowed only if the 'page-break-inside' property of all ancestors is
2032-
<span class="css">'auto'</span>.</li>
2035+
or <a href="#brk-end-block">(3)</a> is allowed only if the 'page-break-inside'
2036+
property of all ancestors is ''auto''.</li>
20332037
</ul>
20342038

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

0 commit comments

Comments
 (0)