Using iOS 15.0.2 Safari, when the on-screen keyboard is dismissed, the address bar can become minimized without updating the viewport height. This results a bottom gap that cannot be removed without pressing the address bar. Are there any known workarounds to this? It's possible to get to this state without any device rotations by using nested containers, but the simplest reproducible example that I could come up with is as follows:
- Rotate to landscape orientation
- Focus on the text input to bring up the on-screen keyboard
- Rotate to portraite orientation
- Press "Done" on the on-screen keyboard
body {
padding: 0;
margin: 0;
overflow: hidden;
position: fixed;
inset: 0;
-webkit-text-size-adjust: 100%;
}
input {
font-size: 16px;
}
<head>
<meta name="viewport" content="width=device-width,initial-scale=1, viewport-fit=cover">
<meta name="theme-color" content="#000000">
</head>
<body>
<input type="text" />
</body>
