position-visibility
Newly availableSince 202687% of users
Controls when an anchor-positioned element should be shown or hidden based on the visibility of its anchor. For example, you can hide a tooltip if its anchor is scrolled out of view.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since January 2026. Widely available around July 2028.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
anchors-visible- Inherited
- No
- Applies to
- absolutely positioned elements
- Animation type
- discrete
Quick example
.tooltip {
/* Hide the tooltip if the button it's attached to is scrolled off-screen */
position-visibility: anchors-visible;
}Values
alwaysanchors-validanchors-visibleno-overflowposition-visibility browser support
BaselineNewly availableSince 2026 this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.Works in all modern browsers. May need a fallback for older browsers.
Usage87%of people can use this13% use a browser without it.
Browsers
125+
147+
26.2+
125+Mobile
125+Android
147+Android
26.2+iOS
Interop 2026 focus area. All major browsers are actively working to fix cross-browser inconsistencies for this feature in 2026. Learn more →