New issue
Advanced search Search tips

Issue 914804 link

Starred by 2 users

Issue metadata

Status: Assigned
Merged: issue 368053
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Print margin does not work correctly after last update

Reported by borisj....@gmail.com, Dec 13

Issue description

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

Steps to reproduce the problem:
1. make media css for print for example

@media print {

  @page {
    margin: 0;
    size: auto;
  }

2. put to print content that have at least 2 pages

What is the expected behavior?
It should remove link and paging look picture attached. 

What went wrong?
it remove page number only from first page, it remove also from second page from top, but second page bottom have issue.

Please look image attachet this happened after last update.

Did this work before? N/A 

Chrome version: 71.0.3578.98  Channel: stable
OS Version: 10.0
Flash Version:
 
Screenshot_4.jpg
41.7 KB View Download
Components: -Blink Blink>Layout
Mergedinto: 368053
Status: Duplicate (was: Unconfirmed)

Comment 3 Deleted

I think this is not a duplicate, because another is an very old topic. This issue worked normally, until today (chrome upgrade). 

We are team of frontend developers, and we make our application only suppot chrome. 
With print feature there was not an error until upgrade. 

Test is made on two different computers. 

TEST: 

We made a test after I noticed this issue: 

1. On separate computer, the same one offer was sent to print (older version of chrome) All worked well, there was no additional text on second page at bottom. 

2. Upgrade chrome to latest version today 13.12.2018.

3. The same one offer was sent to print (latest version of chrome) Not worked well, there was unwanted additional text on second page at the bottom.  

Screenshot is in the first post.

I will give you more information if needed.

Thank you.
Please provide a complete testcase with a pass condition, so that we can have a look. Thank you.
mstensho@chromium.org, I am sorry i am not able to do that. The project is private. 

I made another one example, just simple file, please take a look second page bottom.... url and page counter should not appear in there...
pr.htm
6.5 KB View Download
Cc: thestig@chromium.org mstensho@chromium.org
Owner: rbpotter@chromium.org
Status: Assigned (was: Duplicate)
You're right; this is a recent behavior change.
It was introduced by https://chromium-review.googlesource.com/c/chromium/src/+/1174704/ (Print Preview: Set settings.pages to the n-up pages).

Consistently omitting the headers / footers when there's no room for them in the page margin area does sound reasonable (and in that case, this is a regression). But maybe I'm wrong?
The behavior is a bit weird here. When I set margins to Minimum, then the "Headers and footers" option appears. If it is checked, and then I pick Default, the "Headers and footers" option disappears, but the actual footer on page 2 remains. 
Components: UI>Browser>PrintPreview
Actually, I can get this behavior to happen at r584624 with the old Print Preview UI, even before r584633 landed.

Boris: Just to be clear, what page size and margin settings are you using in Print Preview?
I use all default settings, in CSS i have set 

@page {
    margin: 0;
    size: A4 portrait !important;
  }

but seem it do not made switch on same settings in print preview window. 

By default settings paper size was letter, when I tried to change to A4 manually. the issue have been gone. But after opening print preview next time it happen again, even print settings is now set to A4. 

I see now that after any change of paper size no matter which option, all become normal to print.

Sign in to add a comment