serenity/Tests/LibWeb/Layout/input/abspos-not-replaced-multiple-auto-variants.html
Sebastian Zaha fd37ad3a84 LibWeb: Fix absolute positioning issues
Make sure the insets and margins calculated according to the spec are
not later ignored and ad-hoc recomputed in
layout_absolutely_positioned_element.

Use the static position calculation in a couple of places where the
spec (and comment) was indicating it should be used.

Fixes #19362
2023-07-08 06:13:56 +02:00

27 lines
438 B
HTML

<style>
* { border: 1px solid black; }
div {
position: absolute;
width: 10px;
height: 10px;
}
.only-t-l {
top: 5px;
left: 5px;
background-color: red;
}
.only-mt-ml {
margin: 5px;
background-color: orange;
}
.both {
top: 5px;
left: 5px;
margin: 5px;
background-color: green;
}
</style>
<body>
<div class="only-t-l"></div>
<div class="only-mt-ml"></div>
<div class="both"></div>