Re: [csswg-drafts] [css-contain] Can we allow absolutely positioned elements to escape a container? (#10102)

The specification that MDN links to explains the same result

https://www.w3.org/TR/css-position-3/#intro

Absolute positioning, which ignores normal layout entirely, pulling the element out of flow and positioning it relative to its containing block with no regard for other content.

**The inner element position applies to the containing block when position is absolute.**

https://www.w3.org/TR/css-contain-3/#containment-types

3.1 Inline-Size containment

Giving an element inline-size containment applies size containment to the inline-axis sizing of its principal box.

**The outer element is a containing block when container is set to inline-size**.

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


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

Received on Thursday, 26 September 2024 17:15:25 UTC