mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05:00
411b28fc59
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> |