Skip to content

CSS Anchor position Container queries #1363

Open

Description

@nileshprajapati

Description

Anchored container queries further increase the usefulness of anchor positioning fallback options by enabling different styling of the anchor-positioned element depending on which fallback position it is placed in. This guide shows how to use anchored container queries and provides a couple of examples.

Specification

CSS Anchor Positioning Module Level 2

web-feature

container-anchor-position-queries

Test Links

No response

Additional Signals

WebKit/standards-positions#501: No position
mozilla/standards-positions#1236: No position

web-platform-dx 23 👍

Activity

  1. github-actions commented on Sep 4, 2026

    @github-actions

    This comment was automatically generated based on the information you provided. Please don't edit it.

    Below is additional information about the web feature (from the web-features project) which is referenced in your proposal.
    If this doesn't accurately correspond to your proposal, please update your initial comment to include web-features: <feature-id>.
    To find feature IDs, use the web-features explorer.

    Feature Anchor position container queries

    • ID: container-anchor-position-queries
    • Name: Anchor position container queries
    • Description: Anchor position container queries with the @container anchored(fallback: …) at-rule apply styles to an element based on the element's anchor position.
    • Baseline status: Limited Availability
    • Developer signals: 35 votes (details)
    • WPT tests: wpt.fyi results
    • More information: See the web-features explorer
  2. changed the title [-]CSS `Anchored container queries`[/-] [+]CSS `Anchor position` Container queries[/+] on Sep 4, 2026
  3. jpzwarte commented on Sep 13, 2026

    @jpzwarte

    I've used this API in Chromium, but it's far from developer friendly. See csswg-drafts/14350 and csswg-drafts/14351

  4. emilio commented on Oct 1, 2026

    @emilio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    focus-area-proposal

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions