mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 16:25:06 +00:00

In order to fix this, I also had to reorganize the code so that we create an independent formatting context even for block-level boxes that don't have any children. This accidentally improves a table layout test as well (for empty tables).
20 lines
No EOL
323 B
HTML
20 lines
No EOL
323 B
HTML
<!doctype html><style>
|
|
* {
|
|
padding: 0;
|
|
}
|
|
html {
|
|
background: white;
|
|
}
|
|
body {
|
|
background: pink;
|
|
}
|
|
.not-bfc {
|
|
margin-top: 30px;
|
|
height: 20px;
|
|
background: orange;
|
|
}
|
|
.bfc {
|
|
margin-top: 30px;
|
|
display: flow-root;
|
|
}
|
|
</style><div class="not-bfc"></div><div class=bfc></div><div class="not-bfc"></div> |