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

LibWeb: Account for auto-fill/fit when expanding grid lines in GFC

Named line placement now works when auto-fill or auto-fit is used to
define grid columns.
This commit is contained in:
Aliaksandr Kalenik 2024-01-05 21:32:47 +01:00 committed by Andreas Kling
parent 90142ad307
commit 9c72807976
3 changed files with 38 additions and 3 deletions

View file

@ -0,0 +1,13 @@
<!DOCTYPE html><html lang="en"><style>
.grid-container {
display: grid;
grid-template-columns: [start] repeat(auto-fill, minmax(100px, 1fr)) [end];
}
.grid-item {
grid-column: start / end;
background-color: lightblue;
padding: 20px;
text-align: center;
}
</style><div class="grid-container"><div class="grid-item">1</div></div>