← Back to all briefs
CSS50s read

CSS Anchor Positioning Lands in All Major Browsers

Position tooltips, popovers, and dropdowns relative to any anchor element , without a single line of JavaScript. Native anchor positioning replaces a decade of third-party positioning libraries.

CSS Anchor Positioning is now available in Chrome, Firefox, and Safari. This is the feature that makes JavaScript positioning libraries obsolete for the most common UI patterns.

The problem it solves

For years, positioning a tooltip or dropdown relative to its trigger element required JavaScript:

  1. Measure the anchor element's position
  2. Measure the popover's dimensions
  3. Calculate the optimal position accounting for viewport edges
  4. Update on scroll, resize, or layout shift

The CSS solution

/* The anchor */
.button { anchor-name: --trigger; }

/* The positioned element */
.tooltip {
  position: absolute;
  position-anchor: --trigger;
  top: anchor(bottom);
  left: anchor(center);
  translate: -50% 8px;
}

No JavaScript. The browser handles scroll, resize, and layout shift automatically. It even flips the tooltip when it would overflow the viewport.

What's now possible

Migration path

You can use anchor positioning as a progressive enhancement today. Keep your JavaScript positioning fallback, detect support with @supports, and let modern browsers skip the JS overhead.

CSS50s read

CSS Scroll-Driven Animations Are Now Baseline, No JS Required

Scroll-driven animations achieved Baseline status in 2026, meaning they're available in all major browsers. Parallax, scroll-triggered reveals, and progress-linked animations now work with pure CSS, no JavaScript, no IntersectionObserver, no animation libraries.

1 source

CSS60s read

Chrome 147 Ships border-shape and Element-Scoped View Transitions

Two long-awaited CSS features landed in Chrome 147: border-shape for non-rectangular element borders, and element-scoped view transitions that animate individual components without full-page transitions. Here's how they work and what they replace.

1 source