CSS Anchor Positioning: Replacing Tooltip Libraries With Native CSS

For years, positioning a tooltip next to its trigger required JavaScript. You needed a library — Floating UI, Popper.js, Tippy.js — to calculate coordinates, detect viewport edges, flip directions on overflow, and reposition on scroll. The need was real and the tooling was competent, but the dependency was always a workaround for a gap in CSS itself. It&rsquo;s part of a broader pattern of CSS…