3 <link href=
"resources/grid.css" rel=
"stylesheet">
5 .onlyColumnFractionFlexFactors {
6 grid-template-columns: minmax(
0,
0.1fr) minmax(
0,
0.2fr) minmax(
0,
0.3fr);
7 grid-template-rows:
50px;
10 .onlyRowFractionFlexFactors {
11 grid-template-columns:
50px;
12 grid-template-rows: minmax(
0,
0.1fr) minmax(
0,
0.2fr) minmax(
0,
0.3fr);
16 .fixedAndfractionFlexFactors {
17 grid-template-columns:
50px minmax(
0,
0.2fr)
30px;
18 grid-template-rows: minmax(
0,
0.1fr)
50px minmax(
0,
0.3fr);
22 .firstRowThirdColumn {
23 background-color: yellow;
27 .secondRowThirdColumn {
28 background-color: yellow;
32 .thirdRowFirstColumn {
33 background-color: brown;
37 .thirdRowThirdColumn {
38 background-color: magenta;
43 <script src=
"../../resources/check-layout.js"></script>
44 <body onload=
"checkLayout('.grid');">
46 <p>Test that resolving auto tracks on grid items works properly.
</p>
48 <div style=
"position: relative;">
49 <div class=
"grid onlyColumnFractionFlexFactors">
50 <div class=
"firstRowFirstColumn" data-expected-width=
"10" data-expected-height=
"50"></div>
51 <div class=
"firstRowSecondColumn" data-expected-width=
"20" data-expected-height=
"50"></div>
52 <div class=
"firstRowThirdColumn" data-expected-width=
"30" data-expected-height=
"50"></div>
56 <div style=
"position: relative;">
57 <div class=
"grid onlyRowFractionFlexFactors">
58 <div class=
"firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"10"></div>
59 <div class=
"secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"20"></div>
60 <div class=
"thirdRowFirstColumn" data-expected-width=
"50" data-expected-height=
"30"></div>
64 <div style=
"position: relative;">
65 <div class=
"grid fixedAndfractionFlexFactors">
66 <div class=
"firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"5"></div>
67 <div class=
"firstRowSecondColumn" data-expected-width=
"4" data-expected-height=
"5"></div>
68 <div class=
"firstRowThirdColumn" data-expected-width=
"30" data-expected-height=
"5"></div>
69 <div class=
"secondRowFirstColumn" data-expected-width=
"50" data-expected-height=
"50"></div>
70 <div class=
"secondRowSecondColumn" data-expected-width=
"4" data-expected-height=
"50"></div>
71 <div class=
"secondRowThirdColumn" data-expected-width=
"30" data-expected-height=
"50"></div>
72 <div class=
"thirdRowFirstColumn" data-expected-width=
"50" data-expected-height=
"15"></div>
73 <div class=
"thirdRowSecondColumn" data-expected-width=
"4" data-expected-height=
"15"></div>
74 <div class=
"thirdRowThirdColumn" data-expected-width=
"30" data-expected-height=
"15"></div>