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

Issue 690621 link

Starred by 9 users

Issue metadata

Status: Duplicate
Merged: issue 664235
Owner:
Closed: Mar 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug


Show other hotlists

Hotlists containing this issue:
Print-Errors


Sign in to add a comment

Automatic page scaling interferes with thead repeating headers and page breaks when printing pages with wide tables

Reported by kevin.ki...@gmail.com, Feb 9 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.37 Safari/537.36

Example URL:

Steps to reproduce the problem:
1. Load the attached test.html (or any other page with a very very wide table)
2. View the print preview

What is the expected behavior?
Table headers are displayed a the top of each page. Page break is inserted after each table.

What went wrong?
Up to a certain width, the table will simply be clipped. After that point, it seems like the page is automatically scaled down to try to fit onto the page. This makes the table data fit horizontally, but the repeated table headers that are supposed to appear at the top of each page now appear multiple times on each page.

Capture, Capture2, Capture3 show what happens when using progressively wider tables.

Page breaks have a similar problem where after a table, the next table doesn't always start at the top of the next page.

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: 57.0.2987.37  Channel: beta
OS Version: 10.0
Flash Version: Shockwave Flash 24.0 r0

This works correctly in Firefox 51.0.1 (32-bit) on Windows 10

It seems like the calculation of where to the put the table headers doesn't take into account the scaling.

If the page is manually scaled down far enough, the problem goes away.

 
test.html
40.0 KB View Download
Capture.PNG
128 KB View Download
Capture2.PNG
116 KB View Download
Capture3.PNG
107 KB View Download
Labels: Needs-Triage-M56
Cc: msten...@opera.com robhogan@chromium.org
Components: Internals>Printing
Labels: -Type-Compat Type-Bug
Status: Untriaged (was: Unconfirmed)
Confirmed using Chrome 56 on Windows 7.
Cc: -robhogan@chromium.org
Owner: robhogan@chromium.org
Status: Assigned (was: Untriaged)
Cc: robhogan@chromium.org
Owner: thestig@chromium.org
This is a feature of the way we decide to scale pages for preview. Both here and in 668681 I've encountered the fact that we render a page with certain dimensions and then try to scale the page down to fit. 

thestig@ - do you have any pointers on the way forward here? I'm guessing it's something the print team have already given some thought to and you probably have an idea of what needs to be done to fix it.

Comment 5 by msten...@opera.com, Feb 20 2017

I think a more master-ish bug here is  bug 664235 . So, there's probably nothing wrong with the repeated headers implementation, but rather that the printing code performs a rogue zoom of the document without repaginating it afterwards.
Not sure about that, since the  bug 664235  is from november, and the double header started 2 weeks ago. I am sure about it because my company started to have printing errors by the last update 56.0.2924.87, while machines that didnt update doesnt show this behaviour.
@dracosaint - that's correct, it's showing up for you now because we're now repeating headers and never used to. They ought to appear at the top of the page but they don't because the rendered page gets scaled down before displaying. It ought to get scaled, and then laid out again, so that the headers appear at the top of the pages. That's why this is a relation of  bug 664235 .

Comment 8 by robho...@gmail.com, Mar 12 2017

Mergedinto: 664235
Status: Duplicate (was: Assigned)
Hi guys, since the last update, it got even worse. Now "display: table-header-group;" doesnt  work anymore. It wont repeat for the other pages.
Looks OK to me on latest canary. Can you be more specific?
We have a report, that usually prints on more than one page. Our customers updated their chrome for the latest official release, and since then the theads with the property setted to "display: table-header-group;" doesn't repeat for each page anymore. Instead, it is adding a random padding for the first page of the report, and the other pages doesnt show the page header at all.
Testing the test.html file you provided looks OK (header repeats at the top of each page) to me on:

Google Chrome	57.0.2987.98 (Official Build) (64-bit)
Revision	f87f641e0af5bfed98578e340f1d5ca79651bf82-refs/branch-heads/2987@{#802}
OS	Linux 
JavaScript	V8 5.7.492.63
Flash	24.0.0.189 internal-not-yet-present

and

Google Chrome	58.0.3029.14 (Official Build) dev (64-bit)
Revision	db73bb2b173ccee0ffc7c99dfa80516da3c3f12e-refs/branch-heads/3029@{#107}
OS	Linux
JavaScript	V8 5.8.283.9

If you can give me something to work with here I can look into it.
Attached a print screen with the same html, at canary  59.0.3053.0
result canary.png
126 KB View Download
Same happens for the official build 57.0.2987.110, it seems like you are using 57.0.2987.98?
Canary just updated to  59.0.3054.0 and the problem still persist
Here's what I get.
Mar 28 2017 6-37 PM.webm
2.8 MB View Download
Yeah, as by the video we aren’t using the same version. Anyway, thanks for your time but unfortunately I can’t wait anymore for a solution for this so i made a my own theader repeater through JavaScript.
Here it is against trunk as of the 23rd.
Mar 28 2017 6-51 PM.webm
2.9 MB View Download

Sign in to add a comment