1
0
Fork 0
firefox/testing/web-platform/tests/css/css-flexbox/empty-flex-box-and-margin-collapsing.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

23 lines
597 B
HTML

<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-flexbox/">
<link rel="match" href="empty-flex-box-and-margin-collapsing-ref.html">
<meta name="assert" content="This checks that empty flex/grid box's margins do not collapse through.">
<style>
.container {
background: green;
height: 50px;
width: 100px;
}
.root {
margin-top: 0;
margin-bottom: 200px;
}
</style>
<p>Test passes if there is a filled green square.</p>
<div class=container>
<div class=root style="display: flex"></div>
</div>
<div class=container>
<div class=root style="display: grid"></div>
</div>