ladybird/Tests/LibWeb/Layout/input/block-and-inline/float-vertical-clearance-for-text-after-break.html
Jelle Raaijmakers 04ba375cc7 LibWeb: Only set line builder's block offset if clearance increases it
This prevents text from overlapping with each other if a `<br>` with
`clear: ..` is used in between.
2025-03-31 08:11:10 +01:00

21 lines
247 B
HTML

<!DOCTYPE html>
<style>
.a {
width: 50px;
}
.b {
background: red;
float: right;
height: 50px;
width: 50px;
}
.c {
clear: right;
}
</style>
<div class="a">
<div class="b"></div>
foo
<br class="c">
bar
</div>