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:
parent
75fc51bb67
commit
903d3c92c8
4 changed files with 62 additions and 9 deletions
9
Tests/LibWeb/Layout/input/grid/auto-fill-rows.html
Normal file
9
Tests/LibWeb/Layout/input/grid/auto-fill-rows.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue