mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
Sizing already worked correctly, but before this change, we were too aggressive with inserting line breaks when negative margins would still an atomic inline to fit on the line.
23 lines
415 B
HTML
23 lines
415 B
HTML
<!doctype html><style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
body {
|
|
width: max-content;
|
|
border: 5px solid black;
|
|
}
|
|
.foo {
|
|
display: inline-block;
|
|
background: orange;
|
|
width: 100px;
|
|
height: 50px;
|
|
}
|
|
.bar {
|
|
display: inline-block;
|
|
background: magenta;
|
|
margin-left: -50px;
|
|
width: 100px;
|
|
height: 50px;
|
|
}
|
|
</style><body><div class="foo"></div><div class="bar"></div> |