Re: [csswg-drafts] [css-position] Absolutely positioned elements' position root should be its parent (#7000)

I can understand your case and in some situations in the past I also felt like the parent element should have been the default position root (or containing block in CSS terminology).

Though setting the parent element as containing block is quite straight forward. As you say, you can define `position: relative;` on it, amongst other ways.

And setting it via a selector as value doesn't buy an author much, as they could just set any ancestor element they want as containing block by setting that property on them.

Besides that, the issue to get to know what's the containing block of an absolutely positioned element is something that is handled by developer tools.

Sebastian

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


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

Received on Monday, 31 January 2022 12:17:18 UTC