New issue
Advanced search Search tips

Issue 707476 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 489521
Owner: ----
Closed: Apr 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

media queries for width are not accurate in print preview

Reported by s...@benchling.com, Apr 1 2017

Issue description

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

Steps to reproduce the problem:
1. Open demo.html
2. Resize browser from 600px wide to 1600px wide.
3. File > Print 
4. Look at the print preview for various paper sizes (e.g. A0, A1, A2, ...)

What is the expected behavior?
At Step 2, we expect that the second rectangle is always the size of the first rectangle but rounded down to the nearest multiple of 50px.

At Step 4, we expect the same behavior.

What went wrong?
In Step 4, the second rectangle is much more than 50px less than the first rectangle.

The desired effect is achieved by having successive media queries that size the rectangle based on incremental values of min-width (utilizing specificity to favor the largest, valid min-width)

This seems to indicate that the value of `width` in media queries in the print preview is incorrect.

In the attached zip:
- chrome-screen-*.png shows step 2 working as expected.
- chrome-print-*.png files illustrates the error in step 4.
- firefox-*.png shows that Firefox's print of A4 and legal were sized correctly.

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 57.0.2987.133  Channel: stable
OS Version: OS X 10.11.6
Flash Version:
 
demo.html
3.9 KB View Download
wrong-width-media-print.zip
899 KB Download

Comment 1 by s...@benchling.com, Apr 1 2017

This appears to be a duplicate of #489521

Comment 2 by meade@chromium.org, Apr 3 2017

Mergedinto: 489521
Status: Duplicate (was: Unconfirmed)
Yeah, I think you're right. Marking as dupe.

Sign in to add a comment