1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00:00

LibWeb: Margin bottom collapsing between parent and last child

This commit is contained in:
Aliaksandr Kalenik 2022-12-28 21:42:46 +03:00 committed by Andreas Kling
parent 7088a87f49
commit 8259ff12bd
5 changed files with 105 additions and 65 deletions

View file

@ -0,0 +1,20 @@
<style>
#foo {
background-color: red;
width: 100px;
}
#bar {
background-color: green;
width: 50px;
height: 50px;
margin-top: -50px;
}
#baz {
background-color: blue;
width: 50px;
height: 50px;
margin-bottom: 100px;
}
</style>
<div id=foo><div id=baz></div></div>
<div id=bar></div>