CSS anchor positioning
A CSS feature that positions an element relative to another named anchor element, with built-in fallbacks when it would overflow.
In more detail
It lets the browser handle tooltip and popover placement without JavaScript measuring the page. Browser support is still growing, so libraries such as Floating UI remain common.
Related terms
- Floating UI — A JavaScript library, and the general technique, for positioning a floating element such as a tooltip next to a reference element.
- layout thrashing — Slowing a page by repeatedly changing styles and then reading sizes, forcing the browser to recalculate layout again and again.
Taught in
- Floating Primitives: Popovers, Tooltips & Positioning — Design Systems & Component Engineering