mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:57:46 +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:
parent
39abd9095e
commit
a32046ea50
3 changed files with 40 additions and 7 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue