ladybird/Tests/LibWeb/Layout/input/grid/inline-abspos-item.html
Aliaksandr Kalenik 91b2cd7d31 LibWeb: Account for x-axis in static position for inline items
..and delay static position calculation in IFC until trailing
whitespace are removed, because otherwise it's not possible to correctly
calculate x offset.
2024-09-21 20:10:49 +02:00

26 lines
592 B
HTML

<!-- Reduced from https://wpt.live/css/css-grid/abspos/positioned-grid-descendants-001.html -->
<!DOCTYPE html>
<style>
.grid {
display: grid;
grid: 150px 100px/200px 300px;
margin: 1px 2px 3px 4px;
padding-top: 100px;
border-width: 9px 3px 12px 6px;
border-style: solid;
width: 550px;
height: 400px;
position: relative;
}
.abspos {
position: absolute;
display: inline;
}
</style>
<div class="grid">
<div style="grid-area: 1/1">
X<br />XX
<div class="abspos" style="grid-area: auto/auto/1/1; inset: auto">XX</div>
</div>
</div>