Re: [csswg-drafts] [css-anchor-position] Allow a positioned el's containing block to be the anchor (#11769)

> At first glance this is a little confusing to me IMO - and typically would give poor results. E.g. all of the top/left/etc tracks would have a zero size in most cases, and typically a containing block above would give a better result.

Is this in regards to using `position-area`? You're correct that this would be the case in the second example, which shows what is currently possible. If you use `position-area` in the second example that has `inset: 0`, then the positioned element would be relying on overflow handling, and would be completely outside the generated containing block.

This proposal would fix that- the new containing block for the positioned element would be generated by the parent `div`'s containing block, which very well could be larger than the parent itself.

-- 
GitHub Notification of comment by jamesnw
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11769#issuecomment-2769450254 using your GitHub account


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

Received on Tuesday, 1 April 2025 13:56:25 UTC