serenity/Tests/LibWeb/Layout/input/block-and-inline/automatic-size-of-block-container-with-inline-children-and-nonempty-floating-child.html
Andreas Kling 508927cae2 LibWeb: Take floats into account when measuring automatic width of IFC
When there are floats present inside an IFC, we must coordinate with
the parent BFC to calculate the automatic width of the IFC's block box.
This is because the IFC is not directly aware of floats. Only the BFC
knows enough about them to account for them in automatic sizing.
2023-05-03 19:49:43 +02:00

15 lines
No EOL
296 B
HTML

<!doctype html><style>
* {
}
body {
position: absolute;
}
.black {
background: magenta;
border: 50px solid black;
}
.green {
float: left;
border: 20px solid lime;
}
</style><body><div class="black"><div class="green"></div>