Issue metadata
Sign in to add a comment
|
No scrolling to element if position: sticky
Reported by
ua.san.a...@gmail.com,
Nov 6 2016
|
||||||||||||||||||||||
Issue descriptionUserAgent: 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:
,
Nov 6 2016
,
Nov 7 2016
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.
,
Nov 7 2016
scrollIntoView() - Also not working
document.getElementById('_5').scrollIntoView()
,
Nov 7 2016
Thanks for the nice test case, investigating.
,
Nov 9 2016
,
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
,
Nov 9 2016
,
Nov 9 2016
|
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by phistuck@chromium.org
, Nov 6 2016Components: Blink>Scroll
Status: Untriaged (was: Unconfirmed)