1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 20:37:35 +00:00
serenity/Tests/LibWeb/Layout/input/grid/abspos-item.html
Aliaksandr Kalenik 568c486610 LibWeb: Support positioning of abspos boxes inside grid container
- Out-of-flow items should not affect grid layout
- "The static position of an absolutely-positioned child of a grid
  container is determined as if it were the sole grid item in a grid
  area whose edges coincide with the content edges of the grid
  container."
2023-08-08 11:31:35 +02:00

10 lines
No EOL
221 B
HTML

<style>
.outer-grid {
display: grid;
}
.inner-absolute-block {
display: block;
position: absolute;
}
</style>
<div class="outer-grid"><div class="inner-absolute-block">some text</div><div>more text</div></div>