New issue
Advanced search Search tips

Issue 884123 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 833617
Owner:
Closed: Jan 17
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Interop issue: scrollIntoView can't scroll multiple elements at the same time

Project Member Reported by fw...@igalia.com, Sep 14

Issue description

Element.scroll(): https://bug-188043-attachments.webkit.org/attachment.cgi?id=348493
Element.scrollIntoView(): https://bug-188043-attachments.webkit.org/attachment.cgi?id=348903

Both of the test cases above work in WebKit (with the patch on https://bugs.webkit.org/show_bug.cgi?id=188043) and Firefox. In Chromium, the first test case works but the second one fails to scroll to the element when scrolling is asked to be performed smoothly via CSS or DOM API. I haven't got a chance to debug further to figure out the issue, maybe my test case is just wrong.
 
Cc: sunyunjia@chromium.org bokan@chromium.org
Components: -Blink Blink>Scroll
Looks like something's going wrong when doing a smooth scrollIntoView on the child of a scrollable div.
Labels: -Pri-3 Hotlist-Interop Pri-2
Owner: sunyunjia@chromium.org
Status: Assigned (was: Untriaged)
sunyunjia@, could you please look into it?
Components: -Internals>Compositing>Scroll
Not composited scroll.
Just for the record, I'm adding a bunch of WPT tests for scroll behavior in https://github.com/web-platform-tests/wpt/pull/13049 and some of them fails because of this scrollIntoView bug.
Labels: OS-Android OS-Chrome OS-Linux OS-Mac OS-Windows
Summary: Interop issue: scrollIntoView can't scroll multiple elements at the same time (was: Issues with smooth scrolling and scrollIntoView)
IIRC we cancel any ongoing animation when we start a scrollIntoView so that explains the second test case - we try scrolling the DIVs(/IFRAMEs) in order but each one cancels the previous so only the final DIV scrolls. Deleting the last DIV using dev tools makes the one before it work.

FWIW, in Firefox, both iframes scroll smoothly in order but the DIVs don't scroll at all.

sunyunjia@/majidvp@: Do you know if this behavior is spec-compliant? Could you please triage this - could we fix this to get interop with Safari and others?

Comment 6 by sunyunjia@chromium.org, Jan 17 (6 days ago)

Mergedinto: 833617
Status: Duplicate (was: Assigned)

Sign in to add a comment