mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:47:35 +00:00
LibWeb: Account for gap in auto-fill columns count calculation in GFC
Fixes https://github.com/SerenityOS/serenity/issues/22603
This commit is contained in:
parent
f0288e7f94
commit
90142ad307
3 changed files with 37 additions and 1 deletions
|
@ -0,0 +1,20 @@
|
|||
<!doctype html><style>
|
||||
* {
|
||||
margin: 0px;
|
||||
box-sizing: border-box;
|
||||
outline: 1px solid black;
|
||||
}
|
||||
body {
|
||||
width: 470px;
|
||||
}
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
||||
column-gap: 150px;
|
||||
background: pink;
|
||||
}
|
||||
.item {
|
||||
height: 100px;
|
||||
background: orange;
|
||||
}
|
||||
</style><body><div class="grid"><div class="item"></div><div class="item"></div>
|
Loading…
Add table
Add a link
Reference in a new issue