New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 601033 link

Starred by 4 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Compat


Show other hotlists

Hotlists containing this issue:
Printing-issues


Sign in to add a comment

page-break-inside not working

Reported by mongolrg...@gmail.com, Apr 6 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36

Example URL:

Steps to reproduce the problem:
1. Open test.html (attached) in browser
2. Press Ctrl+P (print)

What is the expected behavior?
Neat page breaking by rows (if they don't fit at end)

What went wrong?
Some artifacts (glitched text shifting, extra space addition in middle if page not only end)

Does it occur on multiple sites: N/A

Is it a problem with a plugin? No 

Did this work before? No 

Does this work in other browsers? Yes 

Chrome version: 49.0.2623.110  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version:
 
test.html
29.0 KB View Download
Cc: nyerramilli@chromium.org
Components: UI>Browser>PrintPreview
Labels: M-52 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
Thanks for the report.

Able to reproduce the issue on Win7, Mac OS X 10.11.4, Ubuntu 14.04 using Chrome Stable 50.0.2661.94, Beta 51.0.2704.29, Dev 52.0.2716.0 and Canary 52.0.2723.0.

Not a regression, issue existing from M30 #30.0.1549.0, requesting Dev team to check the issue and update.

Working fine in IE 11, failed in FF 45.0.2
Project Member

Comment 2 by sheriffbot@chromium.org, Jun 1 2016

Labels: -M-52 M-53 MovedFrom-52
Moving this nonessential bug to the next milestone.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Project Member

Comment 3 by sheriffbot@chromium.org, Jul 14 2016

Labels: -M-53 MovedFrom-53
This issue has been moved once and is lower than Pri-1. Removing the milestone.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Components: Blink>Layout
Saw overlapping text, breaks in the middle of lines, and odd spacing in both Canary (59.0.3061.0) and stable (56.0.2924.87) on Windows 10. Tried loading the page with Canary in Print Browser mode and also observed both the spacing and the overlapping text errors, so adding Blink>Layout component.

Comment 5 by e...@chromium.org, Apr 6 2017

Status: Available (was: Untriaged)
Project Member

Comment 6 by sheriffbot@chromium.org, Apr 13 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Hotlist-Recharge-Cold Needs-Feedback
The rendering of the test file has improved significantly. Is this bug still relevant?
Cc: robho...@gmail.com e...@chromium.org
e.g. r415588 fixed a lot of the rendering issues here.
did you try the test file? I'm seeing p's being split across pages in canary and stable on windows
content split across pages.JPG
147 KB View Download

Comment 10 by e...@chromium.org, Apr 19 2018

Status: Available (was: Untriaged)
Oh yes, this issue is important. As it seems right now (Chrome 70), any kind of page break control is completely lacking in the browser. Even images inside page-break-inside:avoid div elements are split over two pages. This is completely unacceptable and makes the entire printing (or PDF export) feature of Chrome useless. (Firefox at least won't split the image over to pages but it can't be automated as nicely as Chrome.)

I also need a way to declare page break positions in a custom position:absolute layout that contains several smaller grid-like blocks that must not be split in two. This is also impossible right now.
Cc: mstensho@chromium.org
Components: -UI>Browser>PrintPreview
Looks like Chrome fails because of a couple of things here. First of all, the 100% tall DIVs inside table cells. The percentage here doesn't affect non-paginated layout (and shouldn't), but it does seem to confuse pagination, and we end up breaking in the middle of lines. Setting the heights to auto instead at least makes us stop doing that. But we still don't respect break-inside:avoid on the DIVs if they are inside table cells (it does work outside of tables, FWIW). Adding tr { page-break-inside: avoid; } makes the document print as the author intended, I think.

We should fix both issues, of course.

Sign in to add a comment