Bug 1554827 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Changing the zoom level of the web page modifies the screen's width/height properties. On a 1280 x 800 Macbook, Firefox reports a screen height of 800px on a 100% zoom level, which is expected. However, zooming in or out will change this value. This can be observed by opening the web console and typing `window.screen.height` or `window.screen.width`.
**STR**
1. Navigate to this JSFiddle: https://jsfiddle.net/dc5vensr/2/
2. Zoom the page document via `CMD+z` or 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` displayed 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.
**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` displayed 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.
**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.

Back to Bug 1554827 Comment 0