1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:17:34 +00:00

LibWeb: Fix regression in definite grid row heights

Fixes a row height bug when a grid item in a row has a definite height.
This commit is contained in:
martinfalisse 2023-04-01 19:09:19 +02:00 committed by Andreas Kling
parent e65f4b3dc5
commit 6f52272d34
4 changed files with 76 additions and 5 deletions

View file

@ -0,0 +1,22 @@
<style>
body {
font-family: 'SerenitySans';
}
.grid-container {
display: grid;
background-color: lightsalmon;
}
.grid-item {
background-color: lightblue;
}
</style>
<!-- Should render a 2x2 grid with the first row having a height of 50px -->
<div class="grid-container" style="grid-template-columns: auto auto;">
<div class="grid-item" style="height: 50px;">1</div>
<div class="grid-item">2</div>
<div class="grid-item">3</div>
<div class="grid-item">4</div>
</div>