OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <script> | 3 <script> |
4 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); | 4 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); |
5 </script> | 5 </script> |
6 <link href=resources/grid.css rel=stylesheet> | 6 <link href=resources/grid.css rel=stylesheet> |
7 <style> | 7 <style> |
8 .gridNoRow { | 8 .gridNoRow { |
9 grid-definition-columns: 50px; | 9 grid-template-columns: 50px; |
10 /* Make the grid shrink-to-fit. */ | 10 /* Make the grid shrink-to-fit. */ |
11 position: absolute; | 11 position: absolute; |
12 } | 12 } |
13 .gridNoColumn { | 13 .gridNoColumn { |
14 grid-definition-rows: 50px 80px; | 14 grid-template-rows: 50px 80px; |
15 /* Make the grid shrink-to-fit. */ | 15 /* Make the grid shrink-to-fit. */ |
16 position: absolute; | 16 position: absolute; |
17 } | 17 } |
18 </style> | 18 </style> |
19 <script src="../../resources/check-layout.js"></script> | 19 <script src="../../resources/check-layout.js"></script> |
20 <body onload="checkLayout('.grid');"> | 20 <body onload="checkLayout('.grid');"> |
21 <p>This test checks that a grid element with row(s) (resp. column(s)) but no col
umn (resp. row) is properly laid out.</p> | 21 <p>This test checks that a grid element with row(s) (resp. column(s)) but no col
umn (resp. row) is properly laid out.</p> |
22 <div class="grid gridNoRow" data-expected-width="50" data-expected-height="0"></
div> | 22 <div class="grid gridNoRow" data-expected-width="50" data-expected-height="0"></
div> |
23 <div class="grid gridNoColumn" data-expected-width="0" data-expected-height="130
"></div> | 23 <div class="grid gridNoColumn" data-expected-width="0" data-expected-height="130
"></div> |
24 </body> | 24 </body> |
25 </html> | 25 </html> |
OLD | NEW |