Closed Bug 2006002 Opened 1 month ago Closed 1 month ago

Anchored popover does not follow element when scrolling viewport

Categories

(Core :: Layout: Positioned, defect)

Firefox 147
defect

Tracking

()

RESOLVED FIXED
148 Branch
Tracking Status
firefox147 --- fixed
firefox148 --- fixed

People

(Reporter: gundersen, Assigned: dshin)

References

Details

Attachments

(2 files)

See this example: https://codepen.io/mariusgundersen/pen/WbwPWVj

When the popover is opened it is correctly positioned above the button, but when the viewport is scrolled it stays locked to it's position relative to the viewport, not the element that is scrolled away.

Flags: needinfo?(dshin)

Ohkay.. That was confusing for a moment because with position: absolute, scrolling works - But that has to do with it parenting to scrolled content, where position: fixed parents to the viewport.
This is because we don't add implicit anchors to the scroll compensation mechanism, and since there are no explicit anchors, we don't run the scroll compensation machinery.

Flags: needinfo?(dshin)
Assignee: nobody → dshin
Status: UNCONFIRMED → NEW
Ever confirmed: true
Pushed by dshin@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/7b0c7c803439 https://hg.mozilla.org/integration/autoland/rev/788e30c8bc93 Ensure that positioned elements with implicit anchors get scroll compensated. r=layout-anchor-positioning-reviewers,firefox-style-system-reviewers,layout-reviewers,emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/56831 for changes under testing/web-platform/tests
Pushed by chorotan@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/330ab66d1042 https://hg.mozilla.org/integration/autoland/rev/27a3dd5dcaf0 Revert "Bug 2006002: Ensure that positioned elements with implicit anchors get scroll compensated. r=layout-anchor-positioning-reviewers,firefox-style-system-reviewers,layout-reviewers,emilio" for causing bc failures on browser_retainedResultsOnFocus.js

Backed out for causing bc failures on browser_retainedResultsOnFocus.js

Backout link

Push with failures

Failure log
Failure log
Failure log
Failure log

Flags: needinfo?(dshin)
Pushed by dshin@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/88a366abf78c https://hg.mozilla.org/integration/autoland/rev/280695e1643b Ensure that positioned elements with implicit anchors get scroll compensated. r=layout-anchor-positioning-reviewers,firefox-style-system-reviewers,layout-reviewers,emilio
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 148 Branch
Upstream PR merged by moz-wptsync-bot
Duplicate of this bug: 2006041
Flags: needinfo?(dshin)
Attachment #9539546 - Flags: approval-mozilla-release?
Attachment #9539546 - Flags: approval-mozilla-release? → approval-mozilla-release+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: