CSS Anchor Positioning API lets tooltips skip JavaScript
The new Anchor Positioning API lets you attach UI elements like tooltips and dropdowns directly in CSS, sidestepping heavyweight JavaScript. By naming an anchor element and using position-anchor and position-area on the target, developers can handle overflow and dynamic positioning with a few declarative rules.