New issue
Advanced search Search tips

Issue 839255 link

Starred by 3 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows
Pri: 3
Type: Bug



Sign in to add a comment

Printing repeated table headers placed on wrong page if used with transform: scale(xx)

Reported by estebanm...@gmx.ch, May 3 2018

Issue description

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

Example URL:

Steps to reproduce the problem:
1. Create a table with a thead part and a tbody part, where the tbody part should extend across multiple pages
2. set <table style="transform: scale(0.7); transform-origin: top left;">
3. Open print preview

What is the expected behavior?
The repeated table header should display on the second page

What went wrong?
The repeated table header is displayed on the first page, placed between content rows.

This even happens when the scaled table does not extend beyond one page, but the unscaled table would do so.

This also happens when placing the unscaled table inside a scaled div.
I guess the calculation is done before applying css transforms.

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 66.0.3359.117  Channel: stable
OS Version: 10.0
Flash Version: 

It works correctly in IE / Edge (although they don't use the full page height with a scaled table, but at least the headers are placed correctly)
 
test.html
6.0 KB View Download
chrome.png
87.2 KB View Download
edge_1.png
61.7 KB View Download
edge_2.png
60.4 KB View Download

Comment 1 by estebanm...@gmx.ch, May 3 2018

the issue was also tested with Chrome 66 linux, where it also occurs.

Comment 3 by estebanm...@gmx.ch, May 3 2018

chrome_2.png
40.4 KB View Download

Comment 4 by estebanm...@gmx.ch, May 3 2018

this issue could be related: https://bugs.chromium.org/p/chromium/issues/detail?id=819254
i don't think smilar issue for #819254
Example 
			
thead {
 display: table-row-group
}

fix my problem but don't effect scaling page.

Try this solutions reference with this SO questions : https://stackoverflow.com/questions/28757370/scale-html-table-before-printing-using-css

@media print {
    body {transform: scale(.7);
	transform-origin: top left;
	}
    table {page-break-inside: avoid;}
	thead {
				display: table-row-group
			}
}
previev 2nd attached file.
 

test.html
6.2 KB View Download
test.html
6.2 KB View Download
Labels: Needs-Bisect
Labels: Needs-Triage-M66
Cc: vamshi.kommuri@chromium.org
Components: Internals>Printing
Labels: -Needs-Bisect Triaged-ET M-68 FoundIn-68 Target-68 OS-Linux
Status: Untriaged (was: Unconfirmed)
Thanks for filing the issue!

Able to reproduce the issue on reported chrome version 66.0.3359.117 and on the latest canary 68.0.3418.0 using Windows 10 and Ubuntu 14.04.
Note: The issue is not seen on Mac 10.13.1

As the issue is seen from M60(60.0.3112.0) considering it as Non-Regression and marking it as Untriaged. Hence removing Needs-bisect label. Attaching the screen cast from M60 for reference.
839255.mp4
1.3 MB View Download

Comment 9 by bokan@chromium.org, May 4 2018

Components: -Blink
Components: Blink>Layout>Table
Labels: -Pri-2 Pri-3
Status: Available (was: Untriaged)
It's _probably_ a table layout bug.

Sign in to add a comment