mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 09:52:31 +00:00
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. :^)
10 lines
No EOL
200 B
HTML
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> |