This demonstrates a Safari Mobile bug where the visual viewport and layout viewport become mismatched after exiting fullscreen mode.
- Note the header is flush with the top of the page. If pulling down to reload (either fully or partially), the page will spring back to top
- Check the viewport measurements below: they should match, a difference of 1px can happen depending on scaling
- Click "Enter Full-Screen" below, then exit full screen
- Now, pulling down to reload (either fully or partially), the page will be left permanently with a gap
- Note the mismatch between document client and visual viewport heights, of 24px at scaling 1
- Refresh the page - the issue and viewport mismatch persist
- Only force closing Safari and starting again will restore the original behaviour
Document client: -
Window inner: -
Visual viewport: -
Viewport difference: -