mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
If a block with inline children ends with a line break clearing any floats, we not only need to take the introduced clearance into account for the next line box, but the containing block needs to set the correct height as well. Since the spec calls for using the last line box' bottom as the resolved height (if treated as auto), we now correctly apply the clearance to the previous line box' bottom coordinate. Fixes #4058.
16 lines
189 B
HTML
16 lines
189 B
HTML
<!DOCTYPE html>
|
|
<style>
|
|
.a {
|
|
background: green;
|
|
float: left;
|
|
height: 100px;
|
|
width: 100px;
|
|
}
|
|
.b {
|
|
clear: both;
|
|
}
|
|
</style>
|
|
<div class="a"></div>
|
|
<br class="b">
|
|
<p>foo</p>
|