8000 [css-anchor-position] anchor() arguments should be reorderable · Issue #10317 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-anchor-position] anchor() arguments should be reorderable #10317

@fantasai

Description

@fantasai

The syntax of anchor() is defined as follows:

<anchor()> = anchor( <anchor-element>? <anchor-side>, <length-percentage>? )

However we have a CSS design principle that if syntax can be unambiguously reordered, it should be allowed to be reordered. Shouldn't this be

<anchor()> = anchor( [ <anchor-element>? && <anchor-side> ], <length-percentage>? )

?

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

      0