CSS Features to Watch in 2027
CSS features most likely to become usable across browsers in 2027, based on current browser support and Interop commitments.
Content tagged css-2027
Snippet:
:playingand:paused: Style Media by Playback StateStyle audio and video players from their playback state.Style audio and video by playback state with CSS :playing, :paused, :buffering and :muted, plus :has() patterns and a JavaScript fallback.Tutorial:
contrast-color(): Automatic Readable Text on Any BackgroundLet CSS choose readable white or black text automatically.Use CSS contrast-color() to pick white or black text for any background colour: how the spec defines it, custom properties and brand colours, buttons and tags, pairing with light-dark(), mid-tone limits, and an @supports fallback.Tutorial:The
:openPseudo-Class for<details>,<dialog>and<select>Style anything that opens, selects included, with one pseudo-class.Style the open state of <details>, <dialog> and <select> with the CSS :open pseudo-class. Compare it with [open], :popover-open and :modal, with fallbacks.Post:What's New in CSS in 2027: What to Expect
CSS features closest to working everywhere in 2027.An evidence-based look at the CSS features most likely to work in every browser in 2027: typed attr(), customisable select, random(), @function and more.