New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 662723 link

Starred by 6 users

Issue metadata

Status: Fixed
Owner:
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug-Regression



Sign in to add a comment

No scrolling to element if position: sticky

Reported by ua.san.a...@gmail.com, Nov 6 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2911.0 Safari/537.36

Example URL:

Steps to reproduce the problem:
Click to block

What is the expected behavior?

What went wrong?
Not naviganion on hash links

Does it occur on multiple sites: N/A

Is it a problem with a plugin? N/A 

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 56.0.2911.0  Channel: canary
OS Version: 10.0
Flash Version:
 
sticky.html
1.2 KB View Download
Cc: flackr@chromium.org
Components: Blink>Scroll
Status: Untriaged (was: Unconfirmed)
Labels: -Type-Compat Type-Bug-Regression
This can be reproduced in Chrome 54 and seems to be triggered by position sticky on the target element, that is, no scroll to #target if #target {position: sticky;}; it also happens if #target isn't itself sticky but is contained in a sticky ancestor.
scrollIntoView() - Also not working
document.getElementById('_5').scrollIntoView()
Cc: -flackr@chromium.org
Labels: -OS-Windows M-56 OS-All
Owner: flackr@chromium.org
Status: Started (was: Untriaged)
Thanks for the nice test case, investigating.
Project Member

Comment 7 by bugdroid1@chromium.org, Nov 9 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/9e23825d88c48013fb892c755106d21c9aebeeb2

commit 9e23825d88c48013fb892c755106d21c9aebeeb2
Author: flackr <flackr@chromium.org>
Date: Wed Nov 09 17:53:51 2016

Scroll sticky elements into view.

We specifically ignore elements that scroll with the viewport, but sticky
elements should be scrolled into view.

BUG= 662723 
TEST=fast/scroll-behavior/scroll-into-view-sticky.html

Review-Url: https://codereview.chromium.org/2488563003
Cr-Commit-Position: refs/heads/master@{#430969}

[add] https://crrev.com/9e23825d88c48013fb892c755106d21c9aebeeb2/third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-into-view-sticky-expected.html
[add] https://crrev.com/9e23825d88c48013fb892c755106d21c9aebeeb2/third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-into-view-sticky.html
[modify] https://crrev.com/9e23825d88c48013fb892c755106d21c9aebeeb2/third_party/WebKit/Source/core/layout/LayoutBox.cpp

Status: Fixed (was: Started)
Cc: hdodda@chromium.org
 Issue 662708  has been merged into this issue.

Sign in to add a comment