Closed Bug 2072683 Opened 1 month ago Closed 4 days ago

Positioned element taller than the scrollport anchored to a sticky anchor causes infinite scrolling

Categories

(Core :: Layout: Positioned, defect)

defect
Points:
5

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox-esr140 --- unaffected
firefox-esr153 --- unaffected
firefox156 --- unaffected
firefox157 --- unaffected
firefox158 --- wontfix
firefox159 --- wontfix
firefox160 --- fixed

People

(Reporter: dshin, Assigned: TYLin)

References

(Regression)

Details

(Keywords: regression, Whiteboard: anchor-positioning-transform, [wptsync upstream])

Attachments

(4 files)

STR: Load attached testcase, scroll down
Expected: Scroll stops at some point
Actual: Scroll keeps extending

Set release status flags based on info from the regressing bug 2057630

:TYLin, since you are the author of the regressor, bug 2057630, could you take a look?

For more information, please visit BugBot documentation.

See Also: → 2072377

I'll investigate this.

Set release status flags based on info from the regressing bug 2057630

Depends on: 2078331

Next part will split mDefaultScrollShift into two values. Route the current
users of the variableh to use the accessor instead.

This patch does not change behavior.

Assignee: nobody → aethanyc
Status: NEW → ASSIGNED

This patch splits the original mDefaultScrollShift value into two. One is part
of the layout scroll shift, including the sticky scroll shift, and the possible
script shift prior to the first scroll update. The other is post layout scroll
shift, which is intended to be excluded from the scrollable overflow area, to
avoid the feedback loop.

anchor-scroll-010.html covers the original testcase in the bug.

anchor-scroll-011.html is another testcase that an positioned element's
scrollable overflow area may wrongly contribute to its scroll container's while
scrolling the anchor element.

anchor-scroll-012.html coverts the overflow areas update when switching the
position fallbacks. That is, the test would fail if aOct.AddFrame() call is
removed in TriggerFallbackReflow().

Flags: needinfo?(aethanyc)
Attachment #9653158 - Attachment description: Bug 2072683 Part 2 - Keep default layout scroll shift out of scrollable overflow. r?#layout → Bug 2072683 Part 2 - Keep the default scroll shift out of scrollable overflow. r?#layout
Points: --- → 5
Whiteboard: [anchorpositioning:triage] → anchor-positioning-transform
Pushed by aethanyc@gmail.com: https://github.com/mozilla-firefox/firefox/commit/0374ed503626 https://hg.mozilla.org/integration/autoland/rev/4313c08e9942 Part 1 - Add AnchorPosReferenceData::AppliedScrollShift(). r=layout-reviewers,emilio https://github.com/mozilla-firefox/firefox/commit/89bfb6b2a1ab https://hg.mozilla.org/integration/autoland/rev/300a9637f7dc Part 2 - Keep the default scroll shift out of scrollable overflow. r=layout-reviewers,emilio,dshin https://github.com/mozilla-firefox/firefox/commit/2421a05e7a40 https://hg.mozilla.org/integration/autoland/rev/12339dae030e Part 3 - Add WPTs for the scrollable overflow of scroll-compensated anchored elements. r=layout-reviewers,dshin
Status: ASSIGNED → RESOLVED
Closed: 4 days ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch

The patch landed in nightly and beta is affected.

:TYLin, please make an uplift decision for beta:

  • For beta, nominate the patch for beta uplift approval if the fix should be included in this release, or set status-firefox159 to wontfix if the fix can wait for the next release.

See Requesting an Uplift for documentation on how to request an uplift.

For more information, please visit BugBot documentation.

Flags: needinfo?(aethanyc)

Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/63709 for changes under testing/web-platform/tests

Whiteboard: anchor-positioning-transform → anchor-positioning-transform, [wptsync upstream]

Upstream PR merged by moz-wptsync-bot

The fix is large, so let's have it ride the train.

Flags: needinfo?(aethanyc)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: