position-anchor
Newly availableSince 202688% of users
Specifies which defined anchor element a positioned element should track. It connects the positioned element to its anchor by name.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since September 2026. Widely available around March 2029.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
none- Inherited
- No
- Applies to
- absolutely positioned elements
- Animation type
- discrete
Quick example
.tooltip {
position: absolute;
/* Links this tooltip to an element with 'anchor-name: --my-btn' */
position-anchor: --my-btn;
top: anchor(bottom);
}Values
autononeposition-anchor 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.
Usage88%of people can use this12% use a browser without it.
Browsers
151+
151+
27+
151+Mobile
151+Android
151+Android
27+iOS
Interop 2026 focus area. All major browsers are actively working to fix cross-browser inconsistencies for this feature in 2026. Learn more →