I was working on a webpage, and it was auto-scrolling to the bottom of the page. I thought it was maybe because my <main role="main">
element was further down, but was unable to reproduce the issue in testing elsewhere.
Turned out, I had a form input at the bottom of the page set to autofocus
.
<input type="text" id="name" autofocus>