Anchored popover does not follow element when scrolling viewport
Categories
(Core :: Layout: Positioned, defect)
Tracking
()
People
(Reporter: gundersen, Assigned: dshin)
References
Details
Attachments
(2 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-release+
|
Details | Review |
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.
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
•
|
||
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.
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 2•1 month ago
|
||
Comment 6•1 month ago
•
|
||
Backed out for causing bc failures on browser_retainedResultsOnFocus.js
Comment 8•1 month ago
|
||
| bugherder | ||
| Assignee | ||
Updated•1 month ago
|
Comment 11•16 days ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D276884
Updated•16 days ago
|
Updated•5 days ago
|
Updated•5 days ago
|
Comment 12•5 days ago
|
||
| uplift | ||
Description
•