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

LibWeb: Consider all spanned tracks while finding extra space in GFC

This fixes the issue when functions that distribute base_size
or growth_limit to tracks only considered *affected* spanned tracks
while calculating left extra that is available for distribution while
indeed it should be just *all* spanned track by specific item that
extra space size.
This commit is contained in:
Aliaksandr Kalenik 2023-06-07 19:11:29 +03:00 committed by Andreas Kling
parent 3b3ade0b8d
commit 0177e4e6ba
4 changed files with 100 additions and 54 deletions

View file

@ -0,0 +1,24 @@
<style>
.grid {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: min-content auto;
}
.right {
background-color: lightpink;
grid-area: 1 / 2 / auto / -1;
}
.left {
grid-area: 1 / 1 / -1 / auto;
background-color: lightslategrey;
}
.inner {
background-color: lightskyblue;
}
</style>
<div class="grid">
<div class="right">a</div>
<div class="left">
<div class="inner">b</div>
</div>
</div>