NEW236071
window.pageYOffset is not updated immediately after scroll using 'element.focus' method
https://bugs.webkit.org/show_bug.cgi?id=236071
Summary window.pageYOffset is not updated immediately after scroll using 'element.foc...
miherlosev
Reported 2022-02-03 03:52:21 PST
Created attachment 450756 [details] Page for reproduce Reproduced with Safari 15.3 'window.pageYOffset' is not updated after scroll using 'element.focus' method. Steps to reproduce: 1)Open an attached page in the browser 2)Wait 5 seconds 3)After that, the 'document.title will' contain the 'window.pageYOffset' value. The correct value is 200. Such value is getting for Chrome 97, Firefox 96, and Safari 11.1.
Attachments
Page for reproduce (552 bytes, text/html)
2022-02-03 03:52 PST, miherlosev
no flags
Simon Fraser (smfr)
Comment 1 2022-02-03 16:28:54 PST
The scroll happens asynchronously, so window.pageYOffset is not immediately updated.
Radar WebKit Bug Importer
Comment 2 2022-02-10 03:53:14 PST
Note You need to log in before you can comment on or make changes to this bug.