Sticky position outside scroll clip can cause scroller to grow infinitely.
Categories
(Core :: Layout, defect)
Tracking
()
People
(Reporter: flackr, Unassigned)
References
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36 Steps to reproduce: Load the attached HTML file. The green sticky box is stuck below the scroll clip. Scroll down to reach it. Actual results: As you scroll down the scrollable content length grows infinitely as the sticky box is pushed down so you can never scroll to it. Expected results: Chrome and Safari treat the scrolling content size as the containing block size for sticky position computation, which means the sticky position box is clamped by, and not allowed to move below the scrolling content length.
Comment 1•6 years ago
|
||
(note, this bug came up in a blink-dev thread about differences between Chrome's implementation and ours: https://groups.google.com/a/chromium.org/d/msg/blink-dev/X_vBQp60kp8/rIdvtOqfCAAJ)
![]() |
||
Comment 2•6 years ago
|
||
David, who's been tracking the sticky position spec bits?
Comment 3•4 years ago
|
||
2019-03-06
This bug is part of a group of bugs which have had an open needinfo for at least 12 weeks.
The request for information has not been answered, and we can't move forward on the bug so we are closing it.
If the defect is still present, please reopen this bug with an updated report.
Comment 4•4 years ago
|
||
Defect is still present, I hope dbaron@dbaron.org and/or flackr@chromium.org can respond here?
Comment 5•4 years ago
|
||
Also, quite certain https://bugzilla.mozilla.org/show_bug.cgi?id=1434265 is a dup of this issue.
![]() |
||
Updated•4 years ago
|
![]() |
||
Comment 6•4 years ago
|
||
Fwiw, I think this was resolved incorrectly and the bot that did it is buggy. I filed https://bugzilla.mozilla.org/show_bug.cgi?id=1547598 on that.
Comment 7•4 years ago
|
||
This also occurs even if the sticky element is only partially out of view (e.g. if it is larger than the container). I've added a repro for that case.
Updated•4 years ago
|
Updated•4 months ago
|
Comment 8•14 days ago
|
||
Verified with mozregression that the patch in bug 1598112 fixed both test cases.
Description
•