1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:57:45 +00:00

LibWeb: Support auto-fill for rows in GFC

This change fixes the function that calculates the number of auto-fill
tracks, ensuring it uses height when applied to rows, instead of
assuming that it always operates on columns.
This commit is contained in:
Aliaksandr Kalenik 2024-01-07 10:32:40 +01:00 committed by Andreas Kling
parent 75fc51bb67
commit 903d3c92c8
4 changed files with 62 additions and 9 deletions

View file

@ -0,0 +1,9 @@
<!DOCTYPE html><html><style>
* {
outline: 1px solid black;
}
.grid-container {
display: grid;
grid-template-rows: repeat(auto-fill, 200px);
}
</style><div class="grid-container"><div>Item 1</div><div>Item 2</div><div>Item 3</div></html>