Open Bug 1314422 Opened 5 years ago Updated 3 years ago

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

Categories

(Core :: Layout, defect)

49 Branch
defect
Not set
normal

Tracking

()

REOPENED

People

(Reporter: flackr, Unassigned, NeedInfo)

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.
(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)
Component: Untriaged → Layout
Product: Firefox → Core
David, who's been tracking the sticky position spec bits?
Flags: needinfo?(dbaron)

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.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE

Defect is still present, I hope dbaron@dbaron.org and/or flackr@chromium.org can respond here?

Also, quite certain https://bugzilla.mozilla.org/show_bug.cgi?id=1434265 is a dup of this issue.

Status: RESOLVED → REOPENED
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 https://bugzilla.mozilla.org/show_bug.cgi?id=1547598 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.