mode-dark, density-compact, or brand-green and the descendant rules respond without a size query or a style-query condition.v148 · CSS · Container Queries
CSS name-only container queries let descendants match an ancestor by container-name alone: @container mode-dark { ... }. Toggle the names on the wrapper below; the card changes through real @container rules with no container-type set on the live container.
@container rule without container-type.
container-name list. The component has no state classes and no inline style changes; all visual variants come from name-only query blocks.theme-root mode-light density-normal brand-blue
mode-dark, density-compact, or brand-green and the descendant rules respond without a size query or a style-query condition.@container rules can match it.Need the exact API surface, compatibility boundaries, errors, lifecycle, and source links? Read the matching gendn reference ↗