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

Issue 640817 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 638530
Owner: ----
Closed: Aug 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Printing creates an extra blank first page

Reported by m...@storypark.com, Aug 24 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Safari/602.1.50

Steps to reproduce the problem:
1. Load the attached HTML archive in Chrome.
2. Open the print preview 
3. Preview shows a blank first page before the actual content

What is the expected behavior?
Not showing a blank first page (archive should have two total pages, not three).

What went wrong?
An extra page shows up in the preview (and is printed)

Did this work before? Yes 51.0.2704.84

Chrome version: 52.0.2743.116  Channel: stable
OS Version: OS X 10.11.6
Flash Version: 

Have run Chrome v52 and v51 side-by-side, appears to be a regression.
 
Archive.zip
1.9 MB Download
Components: Internals>Printing UI>Browser>PrintPreview
Labels: Needs-Bisect
Status: Untriaged (was: Unconfirmed)
Confirmed, issue is not visible on Chrome 51.0.2662.0 but present on the current stable 52.0.2743.116. 
Labels: -Needs-Bisect M-52 hasbisect OS-Linux OS-Windows
Able to reproduce the issue on windows 7, Linux Ubuntu 14.04 and Mac 10.11.6 using chrome version 52.0.2743.116 and 54.0.2838.0.
This is regression issue broken in M52.Please find the bisect information as below

Narrow Bisect::
Good :: 52.0.2715.0   ---  (build revision 388964)
Bad:: 52.0.2716.0   ---  (build revision 389538)

CHANGELOG URL:  https://chromium.googlesource.com/chromium/src/+log/723a4b536fa9a2f0071c510d14c36918cfee83a9..a74b8ccb63e527837449638b13e2c1534c40bddf

Unable to find the suspect from the above CL.Could any one from dev team please look into this issue.

Thanks,
Components: -UI>Browser>PrintPreview
Labels: -M-52 M-54
Oh, I really like the sample app. It's pretty. Though it is a bit big, so there are lots of moving parts and it is not obvious why it's failing. I'll bisect a bit more.

Comment 5 by msten...@opera.com, Aug 25 2016

Mergedinto: 638530
Status: Duplicate (was: Untriaged)
Yep, adding the following piece of CSS to the test makes the problem go away:

* { orphans:1; widows:1; }

The test case is too complicated for me to comment on any further (but I suspect it uses inline-blocks for things that SHOULD be blocks, so that you get tall lines, making it hard to satisfy the default orphans and widows requirements), but without a further reduction, I'll just mark it as a dup.

Comment 6 by m...@storypark.com, Aug 25 2016

Thanks for your prompt responses everyone, I'll update our css to include that fix. You're right, we're probably heavily abusing CSS to make this work, and simplifying it down was difficult from our end too. It's trying to calculate the page layout to do a print preview in browser before the user gets to the _actual_ print preview screen.

Will pass onto our designers that the prettiness was appreciated, that'll make their day!

Thanks again,
Mathew

Sign in to add a comment