mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05:00
508927cae2
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.
15 lines
No EOL
296 B
HTML
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> |