[Webkit-unassigned] [Bug 263374] New: Web Inspector: ScrollIntoView() is causing the whole page to move upwards
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Oct 19 04:58:46 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=263374
Bug ID: 263374
Summary: Web Inspector: ScrollIntoView() is causing the whole
page to move upwards
Product: WebKit
Version: Safari 16
Hardware: All
OS: All
Status: NEW
Severity: Critical
Priority: P2
Component: Layout and Rendering
Assignee: webkit-unassigned at lists.webkit.org
Reporter: harnoor1994 at gmail.com
CC: bfulgham at webkit.org, simon.fraser at apple.com,
zalan at apple.com
element.ScrollIntoView() is causing the whole page to move upwards when scrollIntoViewOptions are { behavior: 'smooth', block: 'start' };
I have seen multiple people reporting the same issue here: https://stackoverflow.com/a/52835382
And as a workaround I have updated the Options to { behavior: 'smooth', block: 'nearest', inline: 'start' };
However, this is not as smooth as the 'block: start' which works perfectly on Chromium based Browsers.
Also workaround breaks when elements are not on screen and ScrollIntoView is called.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20231019/0c34d253/attachment.htm>
More information about the webkit-unassigned
mailing list