Skip to content

[css-anchor-position] Be more nuanced about last @position-try winning #11080

@jwatt

Description

@jwatt

From https://drafts.csswg.org/css-anchor-position-1/#fallback-rule

If multiple @position-try rules are declared with the same name, the last one in document order "wins".

This section should probably be written to be less absolute, since presumably if @position-try is inside another @-rule (such as @media, @container, @starting-style) we don't want the last one to "win" if it shouldn't actually apply.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions