In 2025, CSS expanded beyond presentation into interaction, UI composition, and conditional logic. According to CSS Wrapped 2025, browsers shipped major features, including native popover hints, fully customizable select elements, scroll-generated controls, anchored container queries, scroll-state queries, CSS conditionals, and typed attribute values. Below is a practical breakdown with examples.
Popover Enhancements (popover="hint")
The Popover API now supports popover="hint" for lightweight, non-modal contextual UI without JavaScript.
Customizable <select>
Using appearance: base-select, native select controls can now be styled without breaking accessibility.
Scroll Buttons & Scroll Markers
Scrollable containers can generate navigation arrows and position indicators without JavaScript.
Anchored Container Queries
Container queries allow components to respond to their container context.
Scroll-State Queries
CSS can now react to scroll conditions such as snapped or stuck states.
Conditional Logic with if()
CSS gained conditional evaluation and tree-aware functions.
Typed attr()
The attr() function now supports typed values like colors and lengths.
Typography & Shape Controls
New layout precision tools improve text trimming and corner geometry.
These features collectively reduce reliance on JavaScript for common UI patterns and make CSS capable of handling state, structure, and interaction natively. Core behaviors that once required JavaScript — from UI components to scroll logic and conditional styling — are increasingly available natively. Developers should experiment with these features now, progressively enhancing them while fallback strategies remain in place.
Let me know what feature excites you the most. For me it's the ability to style select elements.
