W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2020

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

From: Ian Kilpatrick via GitHub <sysbot+gh@w3.org>
Date: Mon, 20 Jul 2020 17:46:34 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-661236557-1595267193-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:11 UTC