1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:38:11 +00:00
serenity/Tests/LibWeb/Layout/input/grid/columns-auto-fill-with-gap-2.html
Aliaksandr Kalenik a32046ea50 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/
2024-01-07 09:57:13 +01:00

10 lines
No EOL
264 B
HTML

<!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>