Web platform features explorer

Container style queries

Limited availability
Tags: css Groups: CSS > Container queries

Container style queries with the @container at-rule apply styles to an element based on the values of custom properties of its container.

Learning resources on MDN

Browser support (view on caniuse.com)

Baseline availability blocked since September 2024 by Firefox (3 months)