3 <link href=
"resources/grid.css" rel=
"stylesheet">
6 grid-template-columns: minmax(
1fr,
50px);
7 grid-template-rows:
50px;
10 grid-template-columns: minmax(
30px,
2fr);
11 grid-template-rows:
50px;
13 .gridTwoMaxFlexContent {
14 grid-template-columns: minmax(
10px,
1fr) minmax(
10px,
2fr);
15 grid-template-rows:
50px;
17 .gridTwoDoubleMaxFlexContent {
18 grid-template-columns: minmax(
10px,
0.5fr) minmax(
10px,
2fr);
19 grid-template-rows:
50px;
21 .gridIgnoreSecondGridItem {
22 grid-template-columns: minmax(
300px,
3fr) minmax(
150px,
1fr);
23 grid-template-rows:
50px;
26 <script src=
"../../resources/check-layout.js"></script>
27 <body onload=
"checkLayout('.grid');">
29 <p>Test that resolving auto tracks on grid items works properly.
</p>
31 <div style=
"width: 0px">
32 <div class=
"grid gridMinFlexContent">
33 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"0" data-expected-height=
"50"></div>
37 <!-- Allow the extra logical space distribution to occur. -->
38 <div style=
"width: 40px; height: 10px">
39 <div class=
"grid gridMinFlexContent">
40 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"40" data-expected-height=
"50"></div>
44 <div style=
"width: 100px; height: 10px;">
45 <div class=
"grid gridMinFlexContent">
46 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"50" data-expected-height=
"50"></div>
50 <div class=
"constrainedContainer">
51 <div class=
"grid gridMaxFlexContent">
52 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"30" data-expected-height=
"50"></div>
56 <!-- Allow the extra logical space distribution to occur. -->
57 <div style=
"width: 40px; height: 10px">
58 <div class=
"grid gridMaxFlexContent">
59 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"40" data-expected-height=
"50"></div>
63 <div style=
"width: 100px; height: 10px;">
64 <div class=
"grid gridMaxFlexContent">
65 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"100" data-expected-height=
"50"></div>
70 <div class=
"constrainedContainer">
71 <div class=
"grid gridTwoMaxFlexContent">
72 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"10" data-expected-height=
"50"></div>
73 <div class=
"sizedToGridArea firstRowSecondColumn" data-expected-width=
"10" data-expected-height=
"50"></div>
77 <!-- Allow the extra logical space distribution to occur. -->
78 <div style=
"width: 60px; height: 10px">
79 <div class=
"grid gridTwoMaxFlexContent">
80 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"20" data-expected-height=
"50"></div>
81 <div class=
"sizedToGridArea firstRowSecondColumn" data-expected-width=
"40" data-expected-height=
"50"></div>
85 <div style=
"width: 120px; height: 10px;">
86 <div class=
"grid gridTwoMaxFlexContent">
87 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"40" data-expected-height=
"50"></div>
88 <div class=
"sizedToGridArea firstRowSecondColumn" data-expected-width=
"80" data-expected-height=
"50"></div>
93 <div class=
"constrainedContainer">
94 <div class=
"grid gridTwoDoubleMaxFlexContent">
95 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"10" data-expected-height=
"50"></div>
96 <div class=
"sizedToGridArea firstRowSecondColumn" data-expected-width=
"10" data-expected-height=
"50"></div>
100 <!-- Allow the extra logical space distribution to occur. -->
101 <div style=
"width: 60px; height: 10px">
102 <div class=
"grid gridTwoDoubleMaxFlexContent">
103 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"12" data-expected-height=
"50"></div>
104 <div class=
"sizedToGridArea firstRowSecondColumn" data-expected-width=
"48" data-expected-height=
"50"></div>
108 <div style=
"width: 120px; height: 10px;">
109 <div class=
"grid gridTwoDoubleMaxFlexContent">
110 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"24" data-expected-height=
"50"></div>
111 <div class=
"sizedToGridArea firstRowSecondColumn" data-expected-width=
"96" data-expected-height=
"50"></div>
116 <!-- Custom test for a corner case. -->
117 <div style=
"width: 570px; height: 10px;">
118 <div class=
"grid gridIgnoreSecondGridItem">
119 <div class=
"sizedToGridArea firstRowFirstColumn" data-expected-width=
"420" data-expected-height=
"50"></div>
120 <div class=
"sizedToGridArea firstRowSecondColumn" data-expected-width=
"150" data-expected-height=
"50"></div>