Re: [csswg-drafts] Proposal: a way to enable margin-collapse on BFC? or a new type of context like BFC but with margin-collapse? (#6752)

If you want a BFC but remove the start and end margins of the contents, `margin-trim` has been proposed for this.

But otherwise it sounds like you don't actually want BFC, you only want to clear floats. Why not use a "clearfix", then?

```css
ul::after {
  content: "";
  display: block;
  clear: both;
}
```

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


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

Received on Friday, 22 October 2021 16:09:02 UTC