mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:47:35 +00:00
LibWeb: Handle fit-content in calculate_max_content_contribution in GFC
Fixes https://github.com/SerenityOS/serenity/issues/21569
This commit is contained in:
parent
04a4ffaa3d
commit
58f8068853
3 changed files with 41 additions and 3 deletions
12
Tests/LibWeb/Layout/input/grid/item-fit-content-width.html
Normal file
12
Tests/LibWeb/Layout/input/grid/item-fit-content-width.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html><style type="text/css">
|
||||
.flex {
|
||||
display: flex;
|
||||
}
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
.w-fit {
|
||||
width: fit-content;
|
||||
}
|
||||
</style><div class="flex"><div class="grid"><div class="w-fit">Col1</div><div class="w-fit">Col2</div>
|
Loading…
Add table
Add a link
Reference in a new issue