← Back to release summary

Container Queries

Category
CSS
Type
New or changed feature
Status
Enabled by default (Chrome 105)
Intent stage
Prepare to ship

Summary

Container Queries allow authors to style elements according to the size of a container element. It's similar to a @media query, except it evaluates against the size of a container instead of the size of the viewport.

Standards & signals

Explainers: https://css.oddbird.net/rwd/query/explainer

View on chromestatus.com