Issue metadata
Sign in to add a comment
|
position: sticky has 1 pixel precise issue at some cases
Reported by
zljj0...@gmail.com,
Aug 21
|
||||||||||||||||||||||
Issue descriptionExample URL: https://pre-wormhole.tmall.com/wow/tun/act/test-sticky-2 Steps to reproduce the problem: 1. scroll page, and the div with postion: sticky fixed at top What is the expected behavior? What went wrong? The div's top is 0px, but there is an obvious 1px gap between top and div. Does it occur on multiple sites: N/A Is it a problem with a plugin? No Did this work before? N/A Does this work in other browsers? Yes Chrome version: 67.0.3396.99 Channel: n/a OS Version: all Flash Version: Shockwave Flash 30.0 r0
,
Aug 21
or visit url: https://pages.tmall.com/wow/tun/act/test-sticky-2
,
Aug 21
,
Aug 21
Thanks for the investigation! Will look into it soon.
,
Aug 21
|
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by zljj0...@gmail.com
, Aug 21This issue is caused by accuracy loss, and also exists on M68. I found the root cause: In CompositedLayerMapping::UpdateStickyConstraints: constraint.scroll_container_relative_sticky_box_rect = EnclosingIntRect(constraints.ScrollContainerRelativeStickyBoxRect()); this will cause in this casue postion y value 313.9xx enclosing to 313, and this will cause 1 pixel accuracy loss. I think EnclosingIntRect should change to RoundedIntRect. And the url above is internal, so please try the test html on attchment. Please conform this issue, thank you.110 KB
110 KB View Download