mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
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.
24 lines
322 B
HTML
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>
|