{}
modern
.css
Search
⌘K
Snippets
123
Articles
Cheatsheet
Atlas
New
CSS
Reference
Units
What's new
History of CSS
Interop
Quiz
Build
CSS audit
Baseline tracker
Tools
AI
Community
X (Twitter)
RSS feed
modern
.css
Audit your CSS
Log in
Sign up
Home
›
What's New in CSS
What's New in CSS
A reference of modern CSS features shipping in browsers. Browse by year, or filter below.
All
2026
2025
Baseline tracker →
2026
CSS features shipping in 2026. Mixins, cross-document view transitions, gap decorations, reading flow, and more browser interop improvements.
View →
2025
A timeline of CSS features that shipped in browsers in 2025. Customizable selects, invoker commands, CSS functions, scroll-state queries, and much more.
View →
2026
View all →
CSS Mixins (@mixin)
Define reusable blocks of declarations with @mixin --name { ... } and apply them with @apply --name. Like Sass mixins but native, with support for parameters and conditional logic.
Workflow
Chrome 146 (expected)
Cross-Document View Transitions
View transitions now work across full page navigations (MPA), not just SPA. Use @view-transition { navigation: auto } to animate between pages served by the same origin.
Animation
Chrome 134, Safari 18.2
CSS Gap Decorations
Style the gaps in grid and flex layouts with column-rule-like properties for both axes. Draw lines, dashes, or gradients between grid tracks without extra DOM elements.
Layout
Chrome 147 (expected)
Reading Flow
Control the keyboard tab and screen reader navigation order of flex and grid children with reading-flow: flex-visual or grid-rows. No need for manual tabindex reordering.
Layout
Chrome 137
Scroll-Driven Animations Interop
animation-timeline: scroll() and view() reach cross-browser baseline. Firefox and Safari ship full support, making scroll-driven animations production-ready without prefixes.
Animation
Baseline 2026 (expected)
CSS Grid Lanes
Native masonry via display: grid-lanes. Define columns for a waterfall, or rows for a brick layout. Items pack into the lane with the most room. Replaces Masonry.js and the old display: masonry / grid-template-rows: masonry prototypes.
Layout
Safari 26.4. Chrome, Edge, and Firefox behind a flag.
Relative Color Syntax Interop
oklch(from var(--base) ...) and color-mix() reach full cross-browser baseline. All major engines now support relative color manipulation natively.
Color
Baseline 2026
@starting-style Interop
@starting-style reaches cross-browser baseline, enabling entry animations from display: none without JavaScript timing hacks in all major browsers.
Animation
Baseline 2026
CSS Custom Highlight API Improvements
The Highlight API gains new features for custom text highlighting. Create spell-check indicators, search highlights, and collaborative editing marks with pure CSS styling.
Selector
Chrome 105, Firefox 140, Safari 17.2, Edge 105
contrast-color() Function
Automatically pick a readable text color based on background luminance. contrast-color(bg) returns whichever of black or white meets WCAG AA contrast against the given color. No manual checking needed.
Color
Chrome 147, Firefox 146, Safari 26, Edge 147. Baseline 2026.
Scoped Styles (@scope)
@scope is Baseline Newly available. Proximity-based styling with upper and lower bounds is a practical alternative to BEM and CSS Modules.
Selector
Chrome 143, Firefox 146, Safari 26.4, Edge 143. Baseline 2026.
field-sizing
field-sizing: content makes form fields grow with their contents. A textarea sizes itself to the typed text. No scrollHeight listener, no height reset on every keystroke.
Layout
Chrome 123, Firefox 152, Safari 26.2, Edge 123. Baseline 2026.
:open Pseudo-class
:open matches elements that are currently open. That includes expanded details, visible dialogs, and showing popovers. One selector instead of [open] plus separate popover rules.
Selector
Chrome 133, Firefox 136, Safari 26.5, Edge 133. Baseline 2026.
shape() Function
Create responsive clip paths with shape(). Coordinates use percentages and CSS units instead of SVG path() values that break on resize. Chrome, Firefox, Safari, and Edge all ship it.
Animation
Chrome 135, Firefox 148, Safari 18.4, Edge 135. Baseline 2026.
sibling-index() and sibling-count()
sibling-index() returns an element's position among siblings. sibling-count() returns the total. Both are Baseline Newly available. Staggered delays and equal-width layouts no longer need nth-child index variables.
Animation
Chrome 138, Firefox 154, Safari 26.2, Edge 138. Baseline 2026.
2025
View all →
Customizable Select
Fully style HTML select dropdowns with appearance: base-select. The dropdown renders in the top layer, supports rich HTML in options, and the new selectedcontent element reflects the chosen option.
Layout
Chrome 134
Invoker Commands
Buttons can now perform actions on other elements declaratively with commandfor and command attributes. Open modals, toggle popovers, and close dialogs without JavaScript.
Layout
Chrome 135
Dialog Light Dismiss
The closedby attribute brings popover-style light dismiss to dialogs. Set closedby="any" to close on backdrop click or ESC, or closedby="closerequest" for ESC only.
Layout
Chrome 134
popover=hint & Interest Invokers
Hint popovers are ephemeral and don't close other popovers. The interestfor attribute triggers them on hover/focus declaratively. Perfect for tooltips and hovercards.
Layout
Chrome 135
Scroll-State Container Queries
Style descendants based on whether a scroll container is stuck, snapped, or scrollable. Use container-type: scroll-state with @container scroll-state() queries.
Animation
Chrome 133
Tree Counting Functions
sibling-index() returns an element's position among siblings; sibling-count() returns the total. Ideal for staggered animations and dynamic layouts without manual indexing.
Animation
Chrome 136
CSS Scroll Markers & Buttons
Build carousels with CSS-only pseudo-elements. ::scroll-button() creates navigation arrows, ::scroll-marker creates dot indicators. Both are accessible and stylable.
Layout
Chrome 135
text-box (trim & edge)
Trim invisible font metric space for true optical centering. text-box: trim-both cap alphabetic removes ascent/descent padding so text is visually centered in buttons, badges, and headings.
Typography
Chrome 133, Safari 18.2
CSS if() Function
Conditional values in CSS properties. Use if(media(...): value; else: fallback) for inline media queries, if(supports(...): ...) for feature queries, and if(style(...): ...) for style queries.
Workflow
Chrome 137
CSS Custom Functions (@function)
Define reusable functions with @function --name(args) { @return ... }. Write composable, maintainable CSS logic like conditional border-radius, clamped values, and utility helpers.
Workflow
Chrome 137
Advanced attr() Function
attr() now works beyond content property and can parse values as typed data: colors, lengths, numbers, and custom identifiers. Use with any CSS property.
Workflow
Chrome 133
shape() Function
Create complex, responsive clip paths with the shape() function. Supports curves, lines, and CSS custom properties for dynamic clipping that scales with element size.
Animation
Chrome 137
stretch Sizing Keyword
Make elements fill their containing block with width: stretch or height: stretch. Unlike 100%, it applies to the margin box so margins are respected without calc() hacks.
Layout
Baseline 2025
corner-shape Property
Go beyond border-radius with corner-shape: round, bevel, notch, scoop, or squircle. Create flower shapes, hexagonal grids, and iOS-style squircles in pure CSS.
Layout
Chrome 142
Anchored Container Queries
Style elements based on their anchor positioning fallback. Use @container anchored(fallback: flip-block) to flip tooltip arrows automatically when position changes.
Layout
Chrome 138
Nested View Transition Groups
Retain 3D and clipping effects during view transitions by nesting ::view-transition-group pseudo-elements. Use view-transition-group: nearest on child elements.
Animation
Chrome 136
Sources
CSS Wrapped 2025
Chrome DevRel's annual feature roundup with demos and code examples.
chrome.dev/css-wrapped-2025
W3C CSS Overview
Official specifications, drafts, and working group updates.
w3.org/Style/CSS
Baseline Dashboard
Track cross-browser availability for web platform features.
web.dev/baseline