container-type

The CSS property that turns an element into a query container that its descendants can run container queries and container units against.

In more detail

container-type: inline-size allows queries on width, the inline dimension, without restricting height. container-name gives the container a name so nested components can target a specific ancestor rather than the nearest one.

Related terms

Taught in

References