Usually to position a popover or a menu, you'd have to use absolute positioning and then position the element using [[js]] transforms. CSS Anchor Positioning provides a native way of attaching elements positions to others. It also allows fallback positions for when there's not enough room for the preferred position, in a similar way to something like popper.js
There's quite a lot of functionality in the spec, allowing for multiple fallbacks, overflow behaviour, custom positioning, etc.
.anchor { anchor-name: --my-anchor; } .target { position: absolute; position-anchor: --my-anchor; position-area: start end; position-visibility: always; position-try-fallbacks: --my-custom-position, --my-custom-position flip-inline, bottom left; }