Closed Bug 883676 Opened 6 years ago Closed 6 years ago

Implement page-break-inside: avoid for the 'height' of a block

Categories

(Core :: Layout: Block and Inline, defect)

defect
Not set

Tracking

()

VERIFIED FIXED
mozilla25

People

(Reporter: bugzilla, Assigned: mats)

References

(Blocks 1 open bug, )

Details

(Keywords: dev-doc-complete, testcase, Whiteboard: [DocArea=CSS])

Attachments

(1 file)

This spun from bug 685012 comment 42.

'page-break-inside: avoid' does not appear to be implemented for block containers.

Self-explanatory test
---------------------
http://www.gtalbot.org/BugzillaSection/Bug685012-page-break-inside-avoid.html

Expected results
----------------
 a) 5 pages of output are produced, 
 b) each numbered sentence is printed on the corresponding page number and
 c) there is no page break occuring inside each and all 5 black-bordered-boxes.

Actual results in Firefox 21
----------------------------
 a) 4 pages of output are produced,
 b) the 2nd sentence is printed on 1st page, 3rd sentence is printed on 2nd page, 4th sentence is printed on 3rd page and 
 c) there is a page break occuring inside the 2nd, 3rd and 5th black-bordered-boxes.

Notes
-----
The test assumes paper size in paper setup is (preferably) US Letter (216mm wide by 279mm tall; 8½inches by 11inches) or A4 (210mm wide by 297mm tall). 
Page orientation should be Portrait.
Scale should be 100%.

The black borders are not part of that test but they help notice/visualize where the blocks are laid up.

Firefox 21 (under Linux) and Firefox 24a1 June 15th 2013's nightly build,(under Windows XP SP3) fail this test.

Chrome 27.0.1453.110 (under Linux and Windows XP SP3) passes this test. It would be nice to know if IE9 and IE10 pass this test.

I use Linux, kernel version 3.8.0-25-generic, KDE 4.10.4, i686 (32bits).

Gérard
Adding URL field, testcase keyword and bug dependencies
Summary: Implement page-break-inside:avoid for block → Implement page-break-inside: avoid for block
> Firefox 24a1 June 15th 2013's nightly
> build,(under Windows XP SP3) fail this test.

To be precise:

buildID = 20130616031139
userAgent = Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20130616 Firefox/24.0
Summary: Implement page-break-inside: avoid for block → Implement page-break-inside: avoid for the 'height' of a block
Assignee: nobody → matspal
Blocks: page-break-inside
No longer blocks: 132035
Attachment #763947 - Flags: review?(roc)
https://hg.mozilla.org/mozilla-central/rev/4f561ee280eb
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
Status: RESOLVED → VERIFIED
Whiteboard: [DocArea=CSS]
You need to log in before you can comment on or make changes to this bug.