Open Bug 1314422 Opened 5 years ago Updated 3 years ago

Sticky position outside scroll clip can cause scroller to grow infinitely.


(Core :: Layout, defect)

49 Branch
Not set





(Reporter: flackr, Unassigned, NeedInfo)




(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.
(note, this bug came up in a blink-dev thread about differences between Chrome's implementation and ours:
Component: Untriaged → Layout
Product: Firefox → Core
David, who's been tracking the sticky position spec bits?
Flags: needinfo?(dbaron)


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.

Closed: 3 years ago
Resolution: --- → INCOMPLETE

Defect is still present, I hope and/or can respond here?

Also, quite certain is a dup of this issue.

Ever confirmed: true
Resolution: INCOMPLETE → ---
See Also: → 1434265

Fwiw, I think this was resolved incorrectly and the bot that did it is buggy. I filed on that.

Attached file Another test case

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.

Attachment #9067999 - Attachment mime type: application/octet-stream → text/html
You need to log in before you can comment on or make changes to this bug.