1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:17:44 +00:00

Base+LibWeb: Deal with zero-positioned grid items

If a grid item has as its position value a 0 then it should be
invalidated.
This commit is contained in:
martinfalisse 2022-10-01 13:49:01 +02:00 committed by Andreas Kling
parent 9051a56554
commit 56f50c9cde
2 changed files with 32 additions and 9 deletions

View file

@ -48,6 +48,15 @@
<div class="grid-item" style="grid-column: span 2 / 1;">3</div>
</div>
<!-- 0 positioned grid items -->
<p>If you can see this message then the test passed.</p>
<div class="grid-container">
<div class="grid-item" style="grid-row-end: 0;">1</div>
<div class="grid-item" style="grid-row: 0 / 0;">2</div>
<div class="grid-item" style="grid-column: 0 / 1;">3</div>
<div class="grid-item" style="grid-row: 1 / 0;">4</div>
</div>
<!-- Different column sizes -->
<p>Should render a 2x2 grid with columns 50px and 50%</p>
<div