mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:57:44 +00:00
LibWeb: Use item minimum contribution while sizing "fr" track in GFC
Fixes the issue that before "automatic minimum size" were used to size flexible tracks even though specification says is should be "minimum contribution"
This commit is contained in:
parent
e91bdedc93
commit
338fa8261e
3 changed files with 20 additions and 1 deletions
4
Tests/LibWeb/Layout/expected/grid/row-1fr.txt
Normal file
4
Tests/LibWeb/Layout/expected/grid/row-1fr.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (1,1) content-size 798x70 [BFC] children: not-inline
|
||||
Box <body> at (10,10) content-size 200x52 [GFC] children: not-inline
|
||||
BlockContainer <div.item> at (11,11) content-size 100x50 [BFC] children: not-inline
|
15
Tests/LibWeb/Layout/input/grid/row-1fr.html
Normal file
15
Tests/LibWeb/Layout/input/grid/row-1fr.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<!doctype html><style>
|
||||
* {
|
||||
border: 1px solid black;
|
||||
}
|
||||
body {
|
||||
display: grid;
|
||||
grid-template-rows: 1fr;
|
||||
width: 200px;
|
||||
}
|
||||
.item {
|
||||
width: 100px;
|
||||
height: 50px;
|
||||
background: orange;
|
||||
}
|
||||
</style><body><div class="item"></div>
|
Loading…
Add table
Add a link
Reference in a new issue