OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <script> | 3 <script> |
4 if (window.testRunner) | 4 if (window.testRunner) |
5 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); | 5 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); |
6 </script> | 6 </script> |
7 <link href="resources/grid.css" rel="stylesheet"> | 7 <link href="resources/grid.css" rel="stylesheet"> |
8 <style> | 8 <style> |
9 .gridFixedContent { | 9 .gridFixedContent { |
10 grid-definition-columns: 50px minmax(min-content, 50px) minmax(max-content,
50px) minmax(50px, min-content); | 10 grid-template-columns: 50px minmax(min-content, 50px) minmax(max-content, 50
px) minmax(50px, min-content); |
11 grid-definition-rows: 70px minmax(max-content, 70px) minmax(50px, min-conten
t) minmax(65px, max-content); | 11 grid-template-rows: 70px minmax(max-content, 70px) minmax(50px, min-content)
minmax(65px, max-content); |
12 } | 12 } |
13 | 13 |
14 .sizedToGridArea { | 14 .sizedToGridArea { |
15 font: 10px/1 Ahem; | 15 font: 10px/1 Ahem; |
16 /* Make us fit our grid area. */ | 16 /* Make us fit our grid area. */ |
17 width: 100%; | 17 width: 100%; |
18 height: 100%; | 18 height: 100%; |
19 } | 19 } |
20 </style> | 20 </style> |
21 <script src="../../resources/check-layout.js"></script> | 21 <script src="../../resources/check-layout.js"></script> |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 <div class="grid gridFixedContent" id="constrainedGridUndefinedHeight"></div
> | 129 <div class="grid gridFixedContent" id="constrainedGridUndefinedHeight"></div
> |
130 </div> | 130 </div> |
131 | 131 |
132 <!-- Allow the extra logical space distribution to occur. --> | 132 <!-- Allow the extra logical space distribution to occur. --> |
133 <div style="width: 1000px; height: 1000px"> | 133 <div style="width: 1000px; height: 1000px"> |
134 <div class="grid gridFixedContent" id="unconstrainedGrid"><div class="sizedT
oGridArea">XXXXXX XXXXXX</div></div> | 134 <div class="grid gridFixedContent" id="unconstrainedGrid"><div class="sizedT
oGridArea">XXXXXX XXXXXX</div></div> |
135 </div> | 135 </div> |
136 | 136 |
137 </body> | 137 </body> |
138 </html> | 138 </html> |
OLD | NEW |