Skip to content

Commit 4aabec5

Browse files
committed
[css2] ISSUE-35 - page-break-inside no longer inherits
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402844
1 parent 26a8d93 commit 4aabec5

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

css2/changes.src

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
22
<html lang="en">
3-
<!-- $Id: changes.src,v 2.89 2008-04-16 00:51:11 fantasai Exp $ -->
3+
<!-- $Id: changes.src,v 2.90 2008-05-01 05:55:47 fantasai Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Changes</TITLE>
@@ -957,9 +957,15 @@ properties to elements other than block-level elements.</p>
957957
<p>Defined treatment of margins, borders, and padding when a page
958958
break splits a box.</p>
959959

960+
<p>The 'page-break-inside' property no longer inherits.</p>
961+
960962
<h3 id="c13.3.3"><a href="page.html#allowed-page-breaks">Section 13.3.3
961963
Allowed page breaks</a></h3>
962964

965+
<p>The 'page-break-inside' property of all ancestors is checked
966+
for page-breaking restrictions, not just that of the breakpoint's
967+
parent.</p>
968+
963969
<p>When dropping restrictions to find a page breaking opportunity,
964970
rule A is dropped together with B and D rather than together with C.</p>
965971

css2/page.src

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
22
<html lang="en">
3-
<!-- $Id: page.src,v 2.52 2007-07-17 17:40:03 bbos Exp $ -->
3+
<!-- $Id: page.src,v 2.53 2008-05-01 05:55:47 fantasai Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Paged media</TITLE>
@@ -343,7 +343,7 @@ one of them has the value 'always', 'left', or 'right', or when all of them are
343343
'auto'.
344344

345345
<li><strong>Rule B:</strong> However, if all of them are 'auto' and
346-
the nearest common ancestor of all the elements has a <span
346+
a common ancestor of all the elements has a <span
347347
class="propinst-page-break-inside">'page-break-inside'</span> value of
348348
'avoid', then breaking here is not allowed.
349349

@@ -358,7 +358,7 @@ the value of <span class="propinst-widows">'widows'</span> or more.
358358

359359
<li><strong>Rule D:</strong> In addition, breaking at (2) is allowed only if the <span
360360
class="propinst-page-break-inside">'page-break-inside'</span> property
361-
is 'auto'.
361+
of all ancestors is 'auto'.
362362
</ul>
363363

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

css2/properties/properties.db

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ leftwards | rightwards | inherit;;
857857
avoid | auto | inherit;;
858858
auto;;
859859
block-level elements;;
860-
yes;;
860+
no;;
861861
N/A;;
862862
visual, paged;;
863863
as specified

0 commit comments

Comments
 (0)