Re: [csswg-drafts] [css-multicol-1] Margin collapse of first-child element is unintuitive (#6170)

@alystair it seems that this issue is not specific to CSS multicolumn, but common for all cases where some property implicitly converts the container into [Block Formatting Context root](https://drafts.csswg.org/css-display-3/#block-formatting-context-root), doesn't it? Wouldn't the same non-intuitive behavior occur if the container is set to `overflow: hidden` or `contain: layout`? If so, there is a standard (non-hacky) way to prevent the margin collapsing between the container and its first/last child by default — give the container `display: flow-root` instead of `display: block`, to explicitly convert it into the new BFC without side effects.

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


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

Received on Thursday, 1 April 2021 14:39:46 UTC