mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:17:35 +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
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