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

> > 4. This suggests that elements being _collapsed through_ may still have descendants.
> 
> Yes, they 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` property between `left` and `none` and thus make it out-of-flow or in-flow, respectively).

Thanks. I’ll review it once I understand what 'collapse through an element' means and the conditions under which it occurs.

-- 
GitHub Notification of comment by gitspeaks
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11306#issuecomment-2510933226 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:58:01 UTC