<anchor>
Newly availableSince 202688% of users
Allows an element (like a tooltip or menu) to be docked to another element on the page, ensuring it stays positioned relative to that target even if the page scrolls or layout changes.
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 example
.tooltip {
/* Docks the top of the tooltip to the bottom of the anchor */
top: anchor(bottom);
position: absolute;
}<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
125+
147+
26+
125+Mobile
125+Android
147+Android
26+iOS
Interop 2026 focus area. All major browsers are actively working to fix cross-browser inconsistencies for this feature in 2026. Learn more →