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-1] position-area: self keyword inconsistency #11371

Open
tuankiet65 opened this issue Dec 14, 2024 · 1 comment
Open

[css-anchor-position-1] position-area: self keyword inconsistency #11371

tuankiet65 opened this issue Dec 14, 2024 · 1 comment

Comments

@tuankiet65
Copy link
Contributor

The syntax definition of position-area says the self version of block-start, block-end, inline-start, inline-end is the same keyword but with the self- prefix (so self-block-start, self-block-end, ...).

However in the section explaining what the keywords mean, self is placed in the middle of the keyword instead of (block-self-start, block-self-end, ...)

So which of these is the correct convention to use?

This also leads to a relevant issue - in the syntax definition, we both have self- as the prefix (e.g: self-block-start, self-inline-start), and self- in the middle (e.g: x-self-start). Should we fix the syntax to be consistent where self- could be in the keyword?

@tuankiet65
Copy link
Contributor Author

For some perspective, Chome implements it as exactly as the syntax definition says, and the WPT tests reflect it.

@tuankiet65 tuankiet65 changed the title [css-anchor-position] position-area: self keyword inconsistency [css-anchor-position-1] position-area: self keyword inconsistency Dec 14, 2024
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

1 participant