Scroll Anchoring: interaction with CSS positioning |
|||
Issue descriptionScroll Anchoring is an intervention whose intent is to mitigate reflows that unnecessarily impact the user experience. We should confirm if it interacts well with CSS positioning.
,
Mar 15 2016
,
Mar 25 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/54502dc10d4a4cf3be8d9fb89db3d2927c7bbaf9 commit 54502dc10d4a4cf3be8d9fb89db3d2927c7bbaf9 Author: skobes <skobes@chromium.org> Date: Fri Mar 25 21:22:23 2016 Handle position:absolute candidates correctly in ScrollAnchor. An absolute-positioned candidate should be considered only if it would actually scroll with the scroller (otherwise the anchoring scroll will have no effect on it). BUG= 594873 Review URL: https://codereview.chromium.org/1831993002 Cr-Commit-Position: refs/heads/master@{#383361} [modify] https://crrev.com/54502dc10d4a4cf3be8d9fb89db3d2927c7bbaf9/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp [modify] https://crrev.com/54502dc10d4a4cf3be8d9fb89db3d2927c7bbaf9/third_party/WebKit/Source/core/layout/ScrollAnchorTest.cpp
,
Mar 25 2016
I tested other combinations of static / relative / absolute / fixed on the candidate and the scroller and I think they all behave correctly. We don't do anything special with position: sticky, that may be worth investigating after http://crrev.com/1308273010 has landed. |
|||
►
Sign in to add a comment |
|||
Comment 1 by kenjibaheux@chromium.org
, Mar 15 2016