ladybird/Tests/LibWeb/Layout/input/abspos-with-static-position-in-one-axis.html
Andreas Kling 40a914ce1a LibWeb: Use static position for abspos box axes with auto insets
When both insets in a given axis are auto, we should use the static
position for absolutely positioned elements.

By doing this correctly, we exposed a bunch of other small bugs which
had to be fixed to compensate for new test failures. Those fixes are
included here as well:
- Don't apply margins twice.
- Compute the static position containing block chain correctly.

This makes https://brave.com/ look much better. :^)
2024-04-12 09:08:07 +02:00

10 lines
No EOL
200 B
HTML

<!doctype html><style>
* { outline: 1px solid black; }
img {
position: absolute;
width: 100px;
height: 100px;
background: green;
left: 50px;
}
</style><div>hello friends</div><img>