Files
ladybird/Tests/LibWeb/Layout/input/block-and-inline/block-with-hidden-overflow-after-float-and-margin-left.html
Jelle Raaijmakers 123abe0e79 LibWeb: Overlap float space and left margins for all shared ancestors
We would only correct for the left margin of the containing block of the
child box that we are laying out, but we actually need to correct for
all left margins up until the containing block that contains both the
float and the child box.

Fixes #4639.
2025-05-09 14:13:02 +02:00

24 lines
322 B
HTML

<!DOCTYPE html>
<style>
#a {
background: green;
float: left;
height: 40px;
width: 100px;
}
#b {
border: 1px solid black;
margin-left: 100px;
}
#c {
border: 1px solid red;
overflow: hidden;
}
</style>
<div id="a"></div>
<div id="b">
<div>
<div id="c">foo</div>
</div>
</div>