ladybird/Tests/LibWeb/Layout/input/block-and-inline/float-intrusions-relative-coordinates.html
Jelle Raaijmakers 45905d6f7b LibWeb: Use relative coordinates for available_space_for_line()
We were accidentally providing it with absolute Y-coordinates, messing
up stacked floating boxes that would otherwise intrude on each other.

Fixes #4160.
2025-04-01 15:26:12 +02:00

21 lines
273 B
HTML

<!DOCTYPE html>
<style>
.a {
background: red;
height: 50px;
}
.b {
background: green;
}
.c {
background: blue;
}
.bug {
float: left;
height: 50px;
width: 100%;
}
</style>
<div class="a"></div>
<div class="b bug"></div>
<div class="c bug"></div>