mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 23:45:07 +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
No EOL
415 B
HTML
23 lines
No EOL
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> |