Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fantasai opened this issue May 13, 2024 · 2 comments
Open

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

fantasai opened this issue May 13, 2024 · 2 comments

Comments

@fantasai
Copy link
Collaborator

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>? )

?

@tabatkins
Copy link
Member

I feel like there was a reason I had a strict ordering there at first; it might have been very early in the spec when the anchor name wasn't a dashed-ident but just a custom-ident.

But I agree, at this point it's fine to rearrange them.

@css-meeting-bot
Copy link
Member

The CSS Working Group just discussed [css-anchor-position] anchor() arguments should be reorderable, and agreed to the following:

  • RESOLVED: anchor() arguments can be reordered
The full IRC log of that discussion <keithamus> fantasai: anchor arguments are custom-ident and keyword. We normally allow them to be re-ordered. Proposal to re-order.
<keithamus> Rossen4: hearing no objections, calling this resolved.
<fantasai> RESOLVED: anchor() arguments can be reordered

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants