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.
Comment 1 by nzolghadr@chromium.org
, Jan 7