White Space at the Bottom on IOS Safari

When I am applying the CSS property "position: fixed" on the body a white space appears at the bottom of the screen.

steps to reproduce the issue:

  1. open any page on ios safari
  2. hide the address bar by scrolling up
  3. apply css property position fixed on body

You will see the extra space at the bottom of the screen. This area will be filled with address bar if the address bar is open.

There's a workaround for this when you set html and body to 100vh. However, if you have a text area you tap into, and then the keyboard collapses, you have another gap in the case as well.

White Space at the Bottom on IOS Safari
 
 
Q