iOS 15 Safari bad behaviour on fixed footer when using inset

Currently I am facing an issue as a web developer inside the beta versions of iOS 15 Safari.

As of now (beta 3) using simulator iPhone 12, (no device available), when creating a footer fixed at the bottom of the page with the suggested applied padding for the bottom safe area:

position: fixed;
bottom: 0;
padding-bottom: env(safe-area-inset-bottom)

In the state where the Safari tab bar is visible, the actual footer appears above where it renders on screen. This in essence makes the footer not tap-able.

Youtube and other sites have already implemented the safe area, so I will share a screenshot from there.

You can see that the blue area is where Safari thinks the element is and the green area is the padding and the element is rendering there. You can tap inside the blue area and trigger the buttons in the footer.

  1. Is this a Safari bug or expected behaviour?
  2. Do we know if this might be fixed?
  3. Failing all that, any work arounds?

Any comment or discussion on this would be appreciated, and if I have just made a simple mistake would be grateful to know :) Thanks!

I was able reproduce similar bug with Twitter consistently and also in my own web application demo using iOS 15 simulator (Xcode beta 4).

Steps to reproduce:

  1. Load page, wait for floating address bar to minimize
  2. Tap on minimized address bar to 'expand' it again
  3. Observe the fixed footer element
  4. Try tapping on 'Not now' or 'Switch to the app' button. Nothing happens.

Display view

Actual tap target

iOS 15 Safari bad behaviour on fixed footer when using inset
 
 
Q