New issue
Advanced search Search tips

Issue 726322 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

documentElement.clientHeight with position: fixed is wrong with URL bar hidden

Project Member Reported by bokan@chromium.org, May 25 2017

Issue description

Chrome Version: 60.0.3109.0
OS: Android

What steps will reproduce the problem?
(1) Visit http://bokand.github.io/bugs/url-bar-client-height.html
(2) Pinch zoom in
(3) Scroll down to hide URL bar
(4) Pinch zoom out

What is the expected result?
The displayed clientHeight and offsetHeight should be equal, they should have increased from when the page loaded. i.e. Swiping down to show the URL bar again should decrease both values. They should always be equal.

What happens instead?
The offsetHeight increases to account for the revealed space from hiding the URL bar but clientHeight does not. It remains statically set to the value from when the URL bar was showing.

Note: typically element's shouldn't resize in response to the URL bar, however, position: fixed elements do. The <html> in this case is position: fixed. This appears to be specific to <html>, the <body> and other elements work correctly here.

 
Labels: -Pri-2 Pri-3

Sign in to add a comment