You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Keep floating element visible when its anchor is hidden (Firefox) #8247
When a positioned/floating element is anchored to another element, Firefox hides the floating element when its anchor is completely hidden (default position-visibility: anchors-visible). Chrome still shows the floating element. We want the floating element to remain visible even when its anchor is hidden (for example by using position-visibility: always).
Steps to reproduce
Use the primer_react_css_anchor_positioning example that positions a floating element relative to an anchor.
In Firefox, scroll or otherwise hide the anchor so it is completely off-screen or covered.
Observe that the floating element is strongly hidden in Firefox, while the same scenario in Chrome still shows the floating element.
Toggling position-visibility to always in Firefox makes the floating element visible again.
Floating element hidden in Firefox when its anchor is out of view
Observed discrepancy between Firefox and Chrome for anchored positioned elements.
Version
unspecified (observed in recent Firefox stable and Nightly)
Activity
liuliu-dev commentedon Jul 28, 2026
cc @TylerJDev