Files
ladybird/Tests/LibWeb/Layout/input/block-and-inline/float-with-negative-margins.html
Jelle Raaijmakers 8257788a20 LibWeb: Ignore negative margins for margin box rect
Negative margins are processed through the `offset` in layout state, and
should not contribute to the margin box' rect's size or position.

Fixes #4249.
2025-04-11 02:34:28 +01:00

14 lines
210 B
HTML

<!DOCTYPE html>
<style>
div {
margin-top: -10px;
width: 50px;
height: 50px;
float: left;
}
.r { background: red; }
.g { background: green; }
</style>
<div class="r"></div>
<div class="g"></div>