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

Issue 668476 link

Starred by 4 users

Issue metadata

Status: Duplicate
Merged: issue 273306
Owner: ----
Closed: Jan 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Margins of elements with physical unit not exact in print

Reported by gregor.w...@gmail.com, Nov 24 2016

Issue description

Chrome Version       : Google Chrome	54.0.2840.99 (Offizieller Build) m (64-Bit)

Other browsers tested: Yes
have tested this issue:
    Firefox: OK - Firefox 50

Steps to reproduce the problem:
1. Create multiple elements div in simple html page with css fixed dimensions and consistent padding of 5mm with an absolute position,
example of box: <div class="box b1" style="width: 4mm; height: 5.5mm; top: 5mm; left: 5mm;"></div>
2. press Ctrl+p, choose you printer and Print page directly to the printer or save as PDF
3. After printing HTML page on paper, look at the margins between the boxes.


What is the expected result?
HTML element margins in the printed paper page or PDF page should all have the same size.

What happens instead?
Margins between the elements tend to change, sometimes 4px sometimes 5px. 

Additional Information:
Possible cause could be rounding mistake based on the ppi of the monitor. On mac the effect is less obvious, because of higher ppi (109 ppi) of the screen.

Possible Connection to  Issue 273306 
 
distance_test.pdf
1.1 KB Download
distance_test.html
2.4 KB View Download

Comment 1 by ajha@chromium.org, Nov 24 2016

Components: Internals>Printing
Labels: M-54

Comment 2 by hdodda@chromium.org, Jan 23 2017

Cc: robhogan@chromium.org
Labels: Needs-Feedback
This issue looks similar to 273306 ..

@robhogan-- Could you please look into this and confirm if we can dup this into #273306.

Thanks!
Yes this issue can be dumped into #273306
Mergedinto: 273306
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment