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