Created attachment 341903 [details] test case On a long page, when focus() is called on an element within an iframe, and if the offsetY of the iframe is > 0, the browser incorrectly scroll after the frame. It occurs only on non-input HTML elements (like div or span with a tabindex attribute). The same issue is observed when element.scrollIntoView() is called from an iframe. I reproduced the issue on iOS (11.3.1), and with a locally built WebKit. It's very similar to the following closed bug : https://bugs.webkit.org/show_bug.cgi?id=158629 .
<rdar://problem/40781035>
Was fixed by bug 186956. *** This bug has been marked as a duplicate of bug 186956 ***