WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
200640
closing tab bar created by target=_blank does not recalculate viewport height
https://bugs.webkit.org/show_bug.cgi?id=200640
Summary
closing tab bar created by target=_blank does not recalculate viewport height
Jordan Nelson
Reported
2019-08-12 12:23:02 PDT
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15" main piece of content has a min-height: 100vh; When opening up another tab manually, the view port height shrinks because the tab bar takes up some space. When the recently opened tab is closed, the tab bar disappears and the view port height expands naturally. The content height expands to fill the expanded view port. When clicking on an <a> tag with target="_blank", the tab bar appears because a new tab is there. When closing the tab the view port height expands normally but the content height is not recalculated and a white space, the size of the former tab bar exists under the content. Loom video:
https://www.loom.com/share/3e942cc998ca422eaee9f6cc6eb0f2f4
password: webkit
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-08-12 13:08:41 PDT
<
rdar://problem/54222312
>
Ahmad Saleem
Comment 2
2023-09-21 09:39:10 PDT
Can you share reproducible test case for the example shown in the video?
Diego Vogel
Comment 3
2024-07-11 06:56:34 PDT
Not sure if this is the same bug, but here's a CodePen demonstrating that WebKit ignores the address bar when calculating vh units.
https://cdpn.io/pen/debug/NWZPmdV/907e34566258745569a61da18ef3d554
If this is a different problem I can open a separate ticket.
Diego Vogel
Comment 4
2024-07-11 08:09:56 PDT
Update: the same thing happens in Chrome and Firefox on Android. So maybe my issue isn't a bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug