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

LibWeb: Account for gaps in grid container's intrinsic size calculation

Fixes https://github.com/SerenityOS/serenity/issues/22804
This commit is contained in:
Aliaksandr Kalenik 2024-01-16 21:23:48 +01:00 committed by Andreas Kling
parent f529188fb8
commit 6a4dd8fa47
3 changed files with 52 additions and 2 deletions

View file

@ -0,0 +1,23 @@
<!DOCTYPE html><style type="text/css">
* {
outline: 1px solid black;
margin: 0px;
padding: 0px;
}
html {
background: white;
}
body {
width: max-content;
background: pink;
}
#menu {
display: grid;
grid-auto-flow: column;
gap: 50px;
background: orange;
}
#wat {
background: green;
}
</style><body><div id="menu"><div>Community</div><div>Community</div></div><div id="wat">wat</div>