mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
This fixes the issue where max margin is used to find offset of floating box although horizonal margins do not collapse so they need to be summed instead.
20 lines
365 B
HTML
20 lines
365 B
HTML
<style>
|
|
body {
|
|
width: 200px;
|
|
margin-left: 100px;
|
|
}
|
|
|
|
.row {
|
|
height: 200px;
|
|
margin-left: -50px;
|
|
background-color: blueviolet;
|
|
}
|
|
.item {
|
|
float: left;
|
|
width: 50%;
|
|
}
|
|
</style><div class="row"><div class="item" style="background-color: lightblue">
|
|
a</div>
|
|
<div class="item" style="background-color: lightgoldenrodyellow">
|
|
b</div>
|
|
</div> |