ladybird/Tests/LibWeb/Layout/input/table/wrap-float-in-anonymous-table-cell.html
Andreas Kling 3d97251da3 LibWeb: Wrap out-of-flow table children in anonymous table cells
This fixes an issue where floating children of a table box would not get
laid out at all if they were surrounded by nothing but whitespace.
2025-08-25 14:55:19 +02:00

25 lines
No EOL
570 B
HTML

<!doctype html><style type="text/css">
* { outline: 1px solid black; }
html { background: white; }
body {
width: 300px;
height: 300px;
background: pink;
}
main {
display: table;
position: relative;
}
.cell {
display: table-cell;
width: 100px;
height: 100px;
background: magenta;
}
.floaty {
float: left;
width: 100px;
height: 100px;
background: orange;
}
</style><body><main><div class="floaty"></div> <div class="cell"></div>