[LayoutNG] position:fixed Elements scroll while url bar is transitioning to hidden |
||
Issue descriptionI am about to land the CL which partially fixes positioning of position:fixed bottom:0 Elements when url bar is hidden. https://chromium-review.googlesource.com/c/chromium/src/+/1341127 There is one remaining problem: While url bar is transitioning to hidden, position:fixed, bottom:0 element does not stick to the bottom of the viewport. It gets positioned correctly after transition ends. I asked @skobes for a hint, and he said: > > I'd start with cc::LayerPositionConstraint. > https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/page/scrolling/scrolling_coordinator.cc?q=set_is_fixed_to_bottom_edge I tried reading this code for something obvious, without success. I tried tracing it in gdb on my linux box. In my simple page: <div class="fixed" style="bottom:0">fixed <span id="height"></span></div> ScrollingCoordinator::UpdateLayerPositionConstraint only gets called for #document layer. Any hints on how to debug this, where to look?
,
Nov 26
Current NG code only fails in one special case: If both top and bottom are specified, but height is not: <div style="position:fixed;bottom:0;top:200px;width:100vw;background:yellow"> </div> |
||
►
Sign in to add a comment |
||
Comment 1 by bokan@chromium.org
, Nov 20Owner: atotic@chromium.org
Status: Assigned (was: Untriaged)