Created attachment 470911 [details] A test-case using <main tabindex=-1> A web page using `<main tabindex=-1>` for its main content area (a common markup pattern for „Skip to content” links) loses its scroll position on iOS Safari when navigating away from the page, then tapping the Back button. The scroll position is moved to the top of the `<main>` element. This seems related to the fact that focus (as evidenced by document.activeElement) returns to the `<main>` element, which may cause the browser to scroll it into view. This only happens on iOS Safari, macOS Safari works well.
<rdar://problem/126399144>
Dan - does this use to work in previous iOS releases?
Ahmad, based on my tests in Browserstack, the issue seems to have been introduced around iOS/Safari 14.