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] Add containing block rules to acceptable elements in top layer #11602

Open
jamesnw opened this issue Jan 29, 2025 · 0 comments

Comments

@jamesnw
Copy link

jamesnw commented Jan 29, 2025

Currently, the spec for Finding an anchor only requires that a positioned el is in a higher top layer than possible anchor for an element in a top layer to be an acceptable anchor.

However, there are also containing block rules for the positioned el, even if it is in a higher top layer. For example, a child element of a popover with position: absolute would have the top layer root element (the popover) as a containing block, and would not be able to be positioned. If it is fixed, its containing block would be the viewport, and then can be positioned.

I'd propose changing the point to positioned el is in a higher top layer than possible anchor and positioned el's containing block is the viewport or initial containing block.

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

No branches or pull requests

1 participant