| <!DOCTYPE html> |
| <html> |
| <head> |
| <title>margin-trim: block-container-block-start-collapsed-margins</title> |
| <link rel="author" title="Sammy Gill" href="mailto:[email protected]"> |
| <link rel="help" href="https://drafts.csswg.org/css-box-4/#margin-trim-block"> |
| <link rel="match" href="block-container-block-start-collapsed-margins-ref.html"> |
| <meta name="assert" content="second item propagates block-start margin through self collapsing item and gets trimmed"> |
| <style> |
| container { |
| display: block; |
| margin-trim: block; |
| margin-block-start: 10px; |
| } |
| item { |
| display: block; |
| margin-block-start: 40px; |
| width: 50px; |
| height: 50px; |
| background-color: green; |
| } |
| .collapsed { |
| margin-block-start: 0px; |
| height: 0px; |
| } |
| </style> |
| </head> |
| <body> |
| <item style="margin-block-start: 0px;"></item> |
| <container> |
| <item class="collapsed"></item> |
| <item></item> |
| </container> |
| </body> |
| </html> |