position:sticky - incorrect offsetting of inline elements |
|||
Issue descriptionRepro: http://output.jsbin.com/nuyuso Scroll that page. The inline element 'sticks', but it also sinks 1 pixel into the scroller first. This seems to be from our use of LayoutInline::linesBoundingBox(), which pushes the stickyBoxRect down by 1 pixel in this example.
,
May 4 2017
,
May 12 2017
The 1 pixel diff is due to the fact that the inline sticky element is smaller (~1px) than its inline-block content. If we don't specify the size of the inline sticky element or make it larger than its content (e.g. remove font-size from .inline in the repo above or make it > 12px), the diff is gone. Seems that it is not actually a bug. |
|||
►
Sign in to add a comment |
|||
Comment 1 by smcgruer@chromium.org
, Mar 20 2017