1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:18:12 +00:00

LibWeb: Flesh out basic support of min-width/height for grid items

This change brings calculate_minimum_contribution() for grid items and
supporting functions.
This commit is contained in:
Aliaksandr Kalenik 2023-05-13 15:17:24 +03:00 committed by Andreas Kling
parent 32a777347f
commit dbafb11a7e
4 changed files with 171 additions and 15 deletions

View file

@ -0,0 +1,22 @@
<style>
.grid {
float: left;
display: grid;
grid-template-columns: auto;
grid-template-rows: auto;
}
.first {
background: pink;
border: 1px solid black;
min-width: 100px;
min-height: 100px;
}
.second {
background: skyblue;
border: 1px solid black;
min-width: 100px;
min-height: 100px;
}
</style><div class="grid"><div class="first">first</div><div class="second">second</div></div>