Re: [csswg-drafts] [css-sizing-4] Should we mention aspect-ratio in margin collapsing? (#5328)

There is one case where it should be considered empty is if you have something like:
```
#parent {
  margin: 0px;
  width: 100px;
}
#child {
  margin-top: 50px;
  margin-bottom: 200px;
  width: 0px; /* FUN */
  aspect-ratio: 1/1;
}
<div id='parent'>
  <div id='child'></div>
</div>
```

I.e. the "top" margin will be `200px`. This is the same if `#child` had an explicit height of `0px`.

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

Received on Monday, 20 July 2020 17:46:35 UTC