Bug 203497

Summary: scrollIntoView doesn't work in the inline axis if the element is partially visible.
Product: WebKit Reporter: Emilio Cobos Álvarez (:emilio) <emilio>
Component: ScrollingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: mrobinson, simon.fraser
Priority: P2 Keywords: FromImplementor
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Emilio Cobos Álvarez (:emilio)
Reported 2019-10-28 11:54:20 PDT
STR: * Open https://bugzilla.mozilla.org/attachment.cgi?id=9104711 * Call `child.scrollIntoView()`. Expected: Child is in view in both axes (i.e., a green square) Actual: Child is only scrolled in the block axis. Per https://drafts.csswg.org/cssom-view/#dom-element-scrollintoview I think Firefox is right. This is also https://bugs.chromium.org/p/chromium/issues/detail?id=916631, I think.
Attachments
Martin Robinson
Comment 1 2021-05-31 03:56:09 PDT
*** This bug has been marked as a duplicate of bug 42593 ***
Note You need to log in before you can comment on or make changes to this bug.