New issue
Advanced search Search tips

Issue 695550 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

position:sticky - incorrect offsetting of inline elements

Project Member Reported by smcgruer@chromium.org, Feb 23 2017

Issue description

Repro: 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.
 
Summary: position:sticky - incorrect offsetting of inline elements (was: Sticky: incorrect offsetting of inline elements)

Comment 2 by yigu@chromium.org, May 4 2017

Cc: smcgruer@chromium.org
Owner: yigu@chromium.org
Status: Started (was: Assigned)

Comment 3 by yigu@chromium.org, May 12 2017

Status: WontFix (was: Started)
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