mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:37:36 +00:00
LibWeb: Consider span > 1 while getting available space for items in GFC
This commit is contained in:
parent
79e76ae64c
commit
628efda754
3 changed files with 72 additions and 4 deletions
21
Tests/LibWeb/Layout/input/grid/item-column-span-2.html
Normal file
21
Tests/LibWeb/Layout/input/grid/item-column-span-2.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue