Interop issue: scrollIntoView can't scroll multiple elements at the same time |
|||||
Issue descriptionElement.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.
,
Sep 14
sunyunjia@, could you please look into it?
,
Sep 14
Not composited scroll.
,
Sep 19
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.
,
Sep 19
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?
,
Jan 17
(5 days ago)
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by ajuma@chromium.org
, Sep 14Components: -Blink Blink>Scroll