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

LibWeb: Set 0px fixed size to collapsed auto-fit tracks in GFC

Fixes the issue that before we set base_size and growth_limit of
collapsed tracks to 0px which still allowed them to grow by space
distribution.
This commit is contained in:
Aliaksandr Kalenik 2023-06-20 18:48:20 +03:00 committed by Andreas Kling
parent e4d0c077c3
commit 21f39061fd
4 changed files with 49 additions and 24 deletions

View file

@ -0,0 +1,14 @@
<style>
.container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
background-color: lightcyan;
border: 10px solid red;
}
.item {
padding: 20px;
background-color: lightgreen;
border: 10px solid papayawhip;
}
</style><div class="container"><div class="item">1</div></div>