What CSS can do now

Parent selectors, native nesting, scoped styles, perceptual colors, popovers, anchored tooltips and animations from display: none. Walk through what landed in the last few years, one room at a time.

How the rooms work

Read

Each lesson explains one feature and the hack it replaces.

Play

Sliders and toggles change the demo’s custom properties.

Break it

Edit the demo’s CSS live. Reset brings it back.

Check support

Badges show Baseline status and test your own browser.

Rooms

  1. 01

    Selectors & structure

    1. :has()
    2. Nesting
    3. @scope
    4. @layer
    5. :nth-child(… of S)
    6. Custom states
  2. 02

    Color

    1. oklch()
    2. Relative colors
    3. color-mix()
    4. light-dark()
    5. contrast-color()
  3. 03

    Popovers & positioning

    1. Popover API
    2. Invoker commands
    3. Anchor positioning
    4. @starting-style
    5. @position-try
    6. anchor-size()
  4. 04

    Responsive components

    1. Container queries
    2. Style queries
    3. Scroll-state queries
    4. Range queries and dvh
    5. scrollbar-gutter
  5. 05

    Logic in CSS

    1. @property
    2. if()
    3. @function
    4. Typed attr()
    5. sibling-index()
    6. Math functions
    7. random()
    8. The var() gotcha
  6. 06

    Motion

    1. Scroll-driven animations
    2. View transitions
    3. interpolate-size
    4. linear() easing
    5. Cross-page transitions
    6. animation-composition
  7. 07

    Forms & UI

    1. Customizable select
    2. field-sizing
    3. Carousels
    4. :user-valid
    5. Exclusive accordions
  8. 08

    Typography & shape

    1. text-wrap
    2. text-box
    3. corner-shape
    4. shape()
    5. Custom Highlight API
    6. font-size-adjust
  9. 09

    Layout

    1. Grid lanes
    2. reading-flow
    3. Subgrid
    4. Centering with align-content
    5. Centering absolute elements
    6. width: stretch
    7. overflow: clip
    8. overscroll-behavior
    9. scroll-margin
    10. Layout by item count