page-break-inside not working
Reported by
mongolrg...@gmail.com,
Apr 6 2016
|
|||||||||
Issue descriptionUserAgent: 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:
,
Jun 1 2016
Moving this nonessential bug to the next milestone. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jul 14 2016
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
,
Apr 3 2017
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.
,
Apr 6 2017
,
Apr 13 2018
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
,
Apr 17 2018
The rendering of the test file has improved significantly. Is this bug still relevant?
,
Apr 17 2018
,
Apr 18 2018
did you try the test file? I'm seeing p's being split across pages in canary and stable on windows
,
Apr 19 2018
,
Oct 22
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.
,
Oct 22
,
Oct 22
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 |
|||||||||
Comment 1 by nyerramilli@chromium.org
, May 4 2016Components: UI>Browser>PrintPreview
Labels: M-52 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)