Developer Tools overlap page contents by 1 pixel when docked to the bottom of the window
Categories
(Core :: Widget: Gtk, defect, P3)
Tracking
()
People
(Reporter: interfect, Unassigned)
Details
(Keywords: X11)
Attachments
(1 file)
191.05 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0
Steps to reproduce:
On Ubuntu 18.04, under the default Gnome Shell, with Firefox 75.0, on a normal (non-high-DPI) monitor, when you have the developer tools open at the bottom of the window, the developer tools overlap the web page content by 1 pixel. Equivalently (as far as I can tell), window.innerHeight is reported as 1 pixel larger than it actually is.
To reproduce:
- Go to http://example.com
- Open the developer tools and make sure they are docked at the bottom of the window.
- In the console, ask for window.innerHeight
- Take a screenshot
- In your image editor, measure the height of the web page, from the bottom of the grey border under the URL bar, to the top of the grey border above the developer tools. Those borders are both part of the browser chrome and not the page itself.
- See that window.innerHeight is reported as 1 pixel larger than the actual rendered height of the page in the screenshot.
I've included a side-by-side screenshot of Firefox and Chromium, both with developer tools docked to the bottom of the window. When resized to exactly the same size on screen (300 pixels tall), Firefox reports a height 1 pixel taller (301).
Actual results:
The reported window inner height is 1 pixel taller than it actually is on screen.
Expected results:
The reported window inner height should equal the size of the page on the screen.
Comment 1•5 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Comment 2•5 years ago
|
||
Resetting severity to default of --
.
Comment 3•4 years ago
|
||
Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is --
(Backlog,) indicating it has has not been previously triaged, the bug's Severity is being updated to --
(default, untriaged.)
Updated•1 years ago
|
Description
•