All posts

CSS Wrapped 2025: 22 new CSS & UI features that make the web more dynamic—less JS,…

Burhan BharmalShared reading

This year’s wrap showcases a wave of platform-native capabilities for components, interactions, and developer ergonomics—crafted by the Chrome DevRel team and shipped to the Web Platform.

Highlights I’m excited about (as a frontend engineer):

  • Declarative UI controls: Invoker commands (commandfor) to open dialogs/popovers without JS, plus Dialog light dismiss (closedby) and popover="hint" for layered, ephemeral UI.

  • Customizable : Style the button, dropdown, and options with appearance: base-select, ::picker(select), and even reflect option markup via .

  • Native carousel toolkit: Build accessible carousels with ::scroll-button() and ::scroll-marker()—and wire up your own TOC/“scroll‑spy” via scroll-target-group + :target-current.

  • Anchored container queries: Make tooltips and callouts “aware” of anchor fallbacks (e.g., auto‑flip arrows when position changes).

  • Next‑gen interactions: Scroll‑state queries (stuck/snapped/scrollable) let you style based on scroll behavior; tree counting functions (sibling-index(), sibling-count()) enable clean staggered animations; and scrollIntoView({ container: 'nearest' }) tames nested scrollers.

  • View transitions: Improvements like Nested View Transition Groups help preserve 3D/clipping effects during page-to-page animations.

These features cut boilerplate JS, improve accessibility and performance by leaning on native primitives, and streamline workflow with more declarative, composable UI patterns.

Full article & demos: https://chrome.dev/css-wrapped-2025/