New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 710649 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

position: sticky; doesn't completely work when combined with flexbox and list items

Reported by adamlync...@gmail.com, Apr 11 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36

Steps to reproduce the problem:
1. Go to http://codepen.io/adam-lynch/pen/bWbYzm.
2. Scroll to the bottom. 

What is the expected behavior?
The headers should be sticky (the whole time). 

Side note: the blue outline is around the list-items in the outer list. That list shouldn't scroll out of view at all.

What went wrong?
The "headers" will stick for awhile, then they disappear.

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 57.0.2987.133  Channel: stable
OS Version: OS X 10.12.3
Flash Version: 

I tested in Safari and it works.

A modified version of the test case in which the stickiness works: http://codepen.io/adam-lynch/pen/ybBxmg (it doesn't use flexbox for the outer list or its items).
 
Labels: Needs-Triage-M57
Labels: -Needs-Triage-M57 M-59 OS-Linux OS-Windows
Status: Untriaged (was: Unconfirmed)
Able to reproduce this issue on Windows-10, Ubuntu 14.04 and Mac OS 10.12 using chrome latest stable #57.0.2987.133 by following test case provided in the original comment. Observed the blue outline is around the list items.

This issue is observed on earlier version of chrome #35.0.1849.0 as well, so considering this is a non-regression issue and marking it as untriaged.

Thanks!
Apologies, this appears to have nothing to do with lists; see this example where I've swapped the lists and their items for divs: http://codepen.io/adam-lynch/pen/LyYOKR?editors=1100
Labels: Needs-Bisect
Cc: brajkumar@chromium.org
Labels: Needs-Feedback
Tested this issue on Mac OS 10.12 using chrome latest stable #58.0.3029.81 by following steps mentioned in the original comment, Observed the headers are sticky while scrolling till bottom of the page.

adam@ Attaching screen-cast for reference, Could you please check it and let us know what's the issues over here, In case if it's different behavior from your end please provide a scree-shot or screen-cast for reference.

Thanks!
710649.mp4
1.3 MB View Download
Hey brajkumar@,

I can still reproduce on stable #58.0.3029.81 (same version as you). I'm on Mac 10.12.4 if that makes any difference.

Screencast: https://share.viewedit.com/m4LYdqjuZEekuUJnAKMcLy
Labels: -Needs-Feedback -Needs-Bisect
As per comment #2 removing bisect label.
Components: Blink>Layout>Flexbox

Comment 9 by e...@chromium.org, May 8 2017

Components: -Blink>CSS -Blink>Layout>Flexbox Blink>Scroll
Owner: flackr@chromium.org
Status: Assigned (was: Untriaged)
Owner: e...@chromium.org
Re #6, the behavior looks identical to safari 10.1 and does seem to be working correctly. The reason the sticky items scroll off is that they are contained by their containing block - the elements with class 'b' (in your div example) and those divs with class b are only the height of the viewport (as you can see by the blue outlines) so they do indeed scroll off.

+eae there is the question of whether horizontally flexing items in a flexbox should get the visible height rather than the scroll height.

Comment 11 by e...@chromium.org, Jun 19 2017

Cc: cbiesin...@chromium.org e...@chromium.org
Owner: ----
Status: Available (was: Assigned)
+cbiesinger to clarify the expected behavior.
Project Member

Comment 12 by sheriffbot@chromium.org, Jun 20 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 13 by bokan@chromium.org, Jun 21 2018

Owner: cbiesin...@chromium.org
Status: Assigned (was: Untriaged)
cbiesinger@ to triage 

Sign in to add a comment