New issue
Advanced search Search tips

Issue 833617 link

Starred by 9 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac
Pri: 2
Type: Bug



Sign in to add a comment

scroll-behavior: smooth does not work for multiple elements

Project Member Reported by blois@google.com, Apr 16 2018

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36

Steps to reproduce the problem:
1. Have a nested scrolling div in the page with CSS scroll-behavior: smooth specified.
2. Call element.scrollIntoView() on an element within that smooth-scrolling div.
3. Simultaneously, call element.scrollIntoView() on an element outside of that smooth-scrolling div.

An example of this is:
http://peteblois.github.io/tmp/smooth_scroll_focus/

What is the expected behavior?
The scrolling containers for both elements for which scrollIntoView is called should scroll into view.

Clicking 'smooth' link should smoothly scroll the right-hand side to the element.

What went wrong?
Clicking the 'smooth' link does not scroll the right-hand side. But the instant scrolling still works.

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 65.0.3325.181  Channel: stable
OS Version: 
Flash Version:
 
Labels: Needs-Triage-M65
Components: Blink>Scroll
Labels: -Type-Bug -Pri-2 hasbisect-per-revision Target-67 M-68 Triaged-ET Target-66 FoundIn-66 FoundIn-67 RegressedIn-61 FoundIn-68 Target-68 OS-Mac OS-Windows Pri-1 Type-Bug-Regression
Owner: sunyunjia@chromium.org
Status: Assigned (was: Unconfirmed)
Able to reproduce the issue on Windows 10, mac 10.13.3 and Ubuntu 14.04 using chrome reported version #65.0.3325.181 and latest canary #68.0.3397.0.

Bisect Information:
=====================
Good build: 61.0.3135.0
Bad Build : 61.0.3136.0

Change Log URL: 
https://chromium.googlesource.com/chromium/src/+log/436ccfe33a1747eb5e4d4b9ed948d498d560bf19..0e2afe148b2aea0aaef135379d01b1df986be46c

From the above change log suspecting below change
Review-Url: https://codereview.chromium.org/2938373003

sunyunjia@ - Could you please check whether this is caused with respect to your change, if not please help us in assigning it to the right owner.

Thanks...!!
Cc: bokan@chromium.org majidvp@chromium.org
Labels: -Pri-1 -Type-Bug-Regression OS-Android OS-Chrome Pri-2 Type-Bug
Not a regression since the highlighted patch is the one that turned on smooth scrolling.

sunyunjia@, could you triage this. I know we explicitly kill any ongoing animation when we try to perform another one but perhaps that's per-spec.
Blocking: 845500
I'll also experienced this issue. Firefox doesn't appear to cancel existing smooth scrolling. Is this a spec issue?
Blocking: -845500
Cc: dtapu...@chromium.org sunyunjia@chromium.org
 Issue 791593  has been merged into this issue.

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

Cc: rbyers@chromium.org ajuma@chromium.org dvoytenko@google.com
 Issue 884123  has been merged into this issue.

Sign in to add a comment