- From: Daniel Holbert via GitHub <sysbot+gh@w3.org>
- Date: Tue, 11 May 2021 16:28:44 +0000
- To: public-css-archive@w3.org
Note that margins do collapse in regular block layout, when there's an abspos element separating two adjacent blocks, as shown here: https://jsfiddle.net/dholbert/46nLusf2/ CSS: ```css .square-with-margin { margin: 50px; height: 50px; width: 50px; } .blue { background: blue; } .teal { background: teal; } .abs { position: absolute; } ``` HTML: ```html <div class="square-with-margin blue"></div> <div class="abs">hello</div> <div class="square-with-margin teal"></div> ``` -- GitHub Notification of comment by dholbert Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6265#issuecomment-838788056 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 11 May 2021 16:28:46 UTC