Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css-grid-layout / flex-content-resolution-columns.html
blob4ce33535400ff1742f6ef31e40a8bf5ce49be95b
1 <!DOCTYPE html>
2 <html>
3 <link href="resources/grid.css" rel="stylesheet">
4 <style>
5 .gridMinFlexContent {
6 grid-template-columns: minmax(1fr, 50px);
7 grid-template-rows: 50px;
9 .gridMaxFlexContent {
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;
25 </style>
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>
34 </div>
35 </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>
41 </div>
42 </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>
47 </div>
48 </div>
50 <div class="constrainedContainer">
51 <div class="grid gridMaxFlexContent">
52 <div class="sizedToGridArea firstRowFirstColumn" data-expected-width="30" data-expected-height="50"></div>
53 </div>
54 </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>
60 </div>
61 </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>
66 </div>
67 </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>
74 </div>
75 </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>
82 </div>
83 </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>
89 </div>
90 </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>
97 </div>
98 </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>
105 </div>
106 </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>
112 </div>
113 </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>
121 </div>
122 </div>
124 </body>
125 </html>