ladybird/Tests/LibWeb/Layout/input/block-and-inline/float-nested-under-eachother.html
Ruben 3263b629c6 LibWeb: Correct the calculation for right float intrusion
We used to subtract the maximum right margin of any containing box,
but we want to subtract the entire right margin instead. This yielded
incorrect intrusions for right floats not placed in the root.
2025-05-27 17:31:47 +02:00

23 lines
395 B
HTML

<!DOCTYPE html>
<style>
.w500 { width: 500px; }
.w400 { width: 400px; }
.w220 { width: 220px; }
.w200 { width: 200px; }
.right {
height: 20px;
float: right;
}
.blue { background: blue; }
.red { background: red; }
</style>
<body>
<div class="w500">
<div class="w400">
<div class="w200 right red"></div>
</div>
<div class="w220 right blue"></div>
</div>
</body>
</html>