DescriptionDon't change layout size due to top control show/hide.
This patch changes Chrome's top control (URL bar) behavior on Android
to match Safari's in how it affects layout size. To summarize, the
layout size or, equivalently, the initial containing block (ICB), is no
longer dynamically adjusted when the top controls are shown/hidden.
Instead the ICB is statically sized to be the size of the viewport when
top controls are showing. position: fixed elements are an exception,
they continue to work as they do today, resizing to mach the full
viewport size in response to top controls.
Additionally, vh units were changed in a similar way; they are now also
statically sized but to the size of the viewport with top controls
hidden.
See https://github.com/bokand/URLBarSizing for full details.
Intent to ship:
https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/BK0oHURgmJ4
BUG=428132
Committed: https://crrev.com/7ea490e3e6a79cc1e7fd4d952bcc36b2ad38cf40
Cr-Commit-Position: refs/heads/master@{#370425}
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #Patch Set 4 : #Patch Set 5 : #Patch Set 6 : #Patch Set 7 : #
Total comments: 7
Patch Set 8 : aelias@ review #Patch Set 9 : Rebase #Patch Set 10 : Nit: Remove useless change #
Total comments: 6
Patch Set 11 : Rebase #Patch Set 12 : jbroman@ review #
Total comments: 2
Patch Set 13 : Remove redundant call to viewportSizeForViewportUnits #Messages
Total messages: 44 (22 generated)
|