CSS does your tooltip positioning now
If you’ve ever built a tooltip, a footnote, or a popover then you’ve written some version of this: const rect = trigger.getBoundingClientRect(); tooltip.style.top = `${rect.bottom + 8}px`; tooltip.style.left = `${rect.left}px`; Looks fine, right? Until the window resizes. Or until the page scrolls. Or the tooltip happens to land near the...