New issue
Advanced search Search tips

Issue 830971 link

Starred by 1 user

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] missing effect on history traversal

Reported by h...@jonjohnjohnson.com, Apr 9 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3383.0 Safari/537.36

Steps to reproduce the problem:
1. Open test case
2. Click both the "top" and "bottom" links a few times noticing how the document smoothly scrolls between the top and bottom anchors.
3. Use the back and forward buttons in the browsers UI, notice how there is no smooth behavior.

What is the expected behavior?
According to the spec and authors, all types of navigation, including history traversal should adhere to the value of the scroll-behavior property.

https://github.com/w3c/csswg-drafts/issues/2454

What went wrong?
No smooth scrolling when either using the browsers forward/back buttons OR programmatically interacting with the history interface, thought 'scroll-behavior: smooth' is set.

Did this work before? No 

Does this work in other browsers? N/A

Chrome version: 67.0.3383.0  Channel: canary
OS Version: OS X 10.12.6
Flash Version:
 
testcase.html
10.3 KB View Download
Labels: Needs-Triage-M67
Cc: susan.boorgula@chromium.org
Labels: Needs-Feedback Triaged-ET
Reporter@ Thanks for the issue.

Tested this issue on Mac OS 10.12.6 and Windows 10 on the reported version 67.0.3383.0 and the latest Canary 67.0.3394.0 and unable to reproduce the issue.

On launching the given html page and clicking on the Top,bottom links, can observe smooth scrolling on the page.
Can observe the same behaviour on clicking the forward,Back buttons on the page.

Attached is the screen cast for reference.

Request you to retry the issue on a new chrome profile without any Flags/extensions and update the thread with the observations.

Thanks..
830971.mp4
4.8 MB View Download
susan.boorgula@chromium.org

According to the spec author (https://github.com/w3c/csswg-drafts/issues/2454) when you click the back and forward buttons, the browser should exhibit the same "smooth" scrolling behavior as was shown when you clicked the top/bottom links. In your video it shows the exact issue. The back/forward browser buttons just instantly jump the scroll position, instead of smoothly scrolling to them. 

When you say, "Can observe the same behaviour on clicking the forward,Back buttons on the page" you must not have been watching your own video. Please rewatch and notice the "smooth" is not there, in other words, it's not the same behavior.
Project Member

Comment 4 by sheriffbot@chromium.org, Apr 11 2018

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 5 by bokan@chromium.org, Apr 12 2018

Cc: bokan@chromium.org majidvp@chromium.org
Labels: OS-Android OS-Chrome OS-Linux OS-Windows
Owner: sunyunjia@chromium.org
Status: Assigned (was: Unconfirmed)
Just for reference, firefox was missing the same behavior and here's their corresponding ticket -> bugzilla.mozilla.org/show_bug.cgi?id=1452825
Just commenting to let you know firefox fixed/shipped this bug in their implementation.

Sign in to add a comment