Back to all features
Open for signals

Anchor position container queries

Anchor position container queries with the @container anchored(fallback: …) at-rule apply styles to an element based on the element's anchor position.

Modern Web Guidance

How Modern Web Guidance uses this feature

Combines Container Queries with Anchor Positioning to adapt floating popups and tooltips based on available space relative to their tethered trigger elements.

Recommended fallback strategy

For browsers without support for @container queries based on anchor positioning, fall back to standard container queries with fixed positioning or JavaScript-based scroll/resize position adjustments.

Community use cases (0)

No use cases submitted yet

Be the first developer to describe your production use case and shape browser priorities!