mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 11:37:16 +02:00
We were introducing a line break and applying vertical clearance to the inline formatting context, but that vertical clearance only applied to new floating boxes. We should move the current block offset to the vertical clearance to make sure the next line box starts beyond the cleared floats. There was a layout test for `<br>` with `clear: ..` set, but that test did not actually do anything - removing the `clear` property would result in the same layout. Replace that test with something that actually tests float clearing. Relates to #4058.
16 lines
182 B
HTML
16 lines
182 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">
|
|
foo
|