[csswg-drafts] [css-anchor-position] Add containing block rules to acceptable elements in top layer (#11602)

jamesnw has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-anchor-position] Add containing block rules to acceptable elements in top layer ==
Currently, the spec only says a `positioned el is in a higher top layer than possible anchor` in order 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.`

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11602 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 29 January 2025 19:33:24 UTC