Chromium Code Reviews
Descriptionvh units shouldn't add controls height when controls are locked to hidden.
Since the initial containing block is now fixed to be the size as if the
browser controls are always shown -- and we want 100vh to appear as if the
viewport is always hidden -- we add the browser controls height to the layout
height used for viewport units.
One exception to this when the browser controls are locked in a hidden state.
In that case, the ICB is actually set to fill the full viewport. In that case
adding the controls height actually makes 100vh taller than the viewport. This
patch avoids adding the controls height when controls are locked hidden.
BUG=688738
Review-Url: https://codereview.chromium.org/2716453004
Cr-Commit-Position: refs/heads/master@{#452991}
(cherry picked from commit 85fff922d53f16ad66d8d39cb066cbcda1640052)
Review-Url: https://codereview.chromium.org/2720743002 .
Cr-Commit-Position: refs/branch-heads/2987@{#694}
Cr-Branched-From: ad51088c0e8776e8dcd963dbe752c4035ba6dab6-refs/heads/master@{#444943}
Committed: https://chromium.googlesource.com/chromium/src/+/e2457ff0890ac0eaf34c7ea0312f3e9d30f866a6
Patch Set 1 #
Messages
Total messages: 2 (1 generated)
|
||||||||||||||||||||||||||||