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