mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-26 19:28:59 +00:00
LibWeb: Consider span > 1 while getting available space for items in GFC
This commit is contained in:
parent
79e76ae64c
commit
628efda754
Notes:
sideshowbarker
2024-07-17 11:06:06 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 628efda754
Pull-request: https://github.com/SerenityOS/serenity/pull/18891
Reviewed-by: https://github.com/awesomekling
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