Closed Bug 1554827 Opened 7 years ago Closed 7 years ago

Both the window's screen and outer height/width values are affected by zoom.

Categories

(Core :: DOM: Core & HTML, defect)

Desktop
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1022006

People

(Reporter: mtigley, Unassigned)

Details

STR

  1. Navigate to this JSFiddle: https://jsfiddle.net/dc5vensr/2/
  2. Zoom the page document via CMD+z (on Mac) or by going to View->Zoom and selecting either "Zoom-in" or "Zoom-out" menu items.
  3. Observe the values displayed for outerWidth, outerHeight, screen.width, and screen.height in the JSFiddle.

ER:
These values should not be affected by zoom.

AR:
These values are being modified as the page is zoomed in or out.

Component: DOM: Device Interfaces → DOM: Core & HTML
Summary: window.screen's height and width properties change when the page is zoomed → Both the window's screen and outer height/width values are affected by zoom.

Hi Micah, is this a Mac-specific issue? Does this happen on other platforms, like Windows or Linux? Thanks.

Flags: needinfo?(mtigley)

Hi Edgar, I can also reproduce this on Windows 10 with Firefox 67. I don't have a Linux machine to test this on, unfortunately.

Flags: needinfo?(mtigley)

(In reply to Micah Tigley [:mtigley] from comment #2)

Hi Edgar, I can also reproduce this on Windows 10 with Firefox 67. I don't have a Linux machine to test this on, unfortunately.

I could also reproduce this on Ubuntu with Firefox 67.

OS: macOS → All
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.