Re: [csswg-drafts] [CSS2] Clarify margin collapsing behavior (#11306)

> 4\. This suggests that elements being _collapsed through_ may still have descendants.

Yes, it still can have _out-of-flow descendants_ such as absolutely positioned elements or floats. You can see this effect [in this demo](https://codepen.io/SelenIT/pen/EaYjvKB), as well as effect of other element on the positioning of the positioning of collapsed-through elements and their floated descendants (by clicking the block button above, you toggle its `float` between `left` and `none` and thus make it out-of-flow or in-flow, respectively).

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


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

Received on Monday, 2 December 2024 08:34:30 UTC