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

LibWeb: Consider span > 1 while getting available space for items in GFC

This commit is contained in:
Aliaksandr Kalenik 2023-05-17 12:33:22 +03:00 committed by Andreas Kling
parent 79e76ae64c
commit 628efda754
3 changed files with 72 additions and 4 deletions

View file

@ -0,0 +1,21 @@
<style>
.container {
display: grid;
grid-template-columns: auto 0 minmax(0, calc(100%));
background-color: red;
}
.item-left {
grid-column: 1;
width: 100px;
background-color: blueviolet;
}
.item-right {
grid-column: 2 / span 2;
}
</style>
<div class="container">
<div class="item-left"></div>
<div class="item-right">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut iaculis venenatis purus, eget blandit velit venenatis at.</div>
</div>