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

Issue 656220 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 652449
Owner: ----
Closed: Oct 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Print preview/Print offsets the fixed position elements by scroll position.

Reported by sass...@gmail.com, Oct 15 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.59 Safari/537.36

Steps to reproduce the problem:
1. Open a html file in chrome that contains a long content and `position: fixed` element that has `top: 0` for example.
2. Scroll the page down a little.
3. Print the page.

What is the expected behavior?
The fixed element to stick to top of the printed document.

What went wrong?
Print offsets the fixed element by scroll position. (for example if you scrolled 100px down, the the fixed element is printed like it had `top: 100px`.)

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 54.0.2840.59  Channel: stable
OS Version: OS X 10.12.0
Flash Version: Shockwave Flash 23.0 r0

It's mentioned here too: https://bugs.chromium.org/p/chromium/issues/detail?id=303728#c69
 
Components: Internals>Printing Blink>Layout
Do you have a sample webpage to demonstrate the issue?

Comment 3 by sass...@gmail.com, Oct 15 2016

I prepared this https://www.mhelli.com/static/t.html
You can just scroll down and see the print preview.
Cc: msten...@opera.com robhogan@chromium.org
Status: Available (was: Unconfirmed)
Intriguing! Can reproduce on Linux / Version 55.0.2883.11 dev (64-bit)

Edge handles it correctly and so does Firefox.
The URL in comment 3 returns a 404 for me.

Comment 6 by sass...@gmail.com, Oct 17 2016

Sorry, rebuilt static files and it was cleared out, I placed it there again. It should work now.
This is actually fixed with 56.0.2891.0 here. Is this a duplicate of  bug 652449 ?

The fixed range is: https://chromium.googlesource.com/chromium/src/+log/9d97226d3b06bd96e376f6ab6975089a4744b7a7..e62df762808dbc7de3d594a634cafdde0bdd9c3f
Mergedinto: 652449
Status: Duplicate (was: Available)
I'm going to answer "yes" to my own question.

Sign in to add a comment