1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:47:44 +00:00

LibWeb: Fix auto-fill track counting to correctly handle gaps in GFC

Fixes the mistake that gaps are counted as if they exist after each
track, when actually gaps are present only between tracks.

Visual progression on https://kde.org/products/
This commit is contained in:
Aliaksandr Kalenik 2024-01-07 08:40:17 +01:00 committed by Andreas Kling
parent 39abd9095e
commit a32046ea50
3 changed files with 40 additions and 7 deletions

View file

@ -0,0 +1,10 @@
<!DOCTYPE html><style type="text/css">
* {
outline: 1px solid black;
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(calc((100% - 50px) / 2), 1fr));
grid-gap: 50px;
}
</style><div class="grid"><div>a</div><div>b</div></div>