CSS anchor positioning makes one element the placement reference for another. A tooltip or menu can follow its button without constantly measuring coordinates in JavaScript.
In the demo the bubble follows a moving button. Real menus also need fallback positions near screen edges and a browser support check.
When to use
Use it to align tooltips, context menus, or pickers with their triggers.