| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <script> | |
| 4 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); | |
| 5 </script> | |
| 6 <link href=resources/grid.css rel=stylesheet> | 3 <link href=resources/grid.css rel=stylesheet> |
| 7 <style> | 4 <style> |
| 8 .gridNoRow { | 5 .gridNoRow { |
| 9 grid-template-columns: 50px; | 6 grid-template-columns: 50px; |
| 10 /* Make the grid shrink-to-fit. */ | 7 /* Make the grid shrink-to-fit. */ |
| 11 position: absolute; | 8 position: absolute; |
| 12 } | 9 } |
| 13 .gridNoColumn { | 10 .gridNoColumn { |
| 14 grid-template-rows: 50px 80px; | 11 grid-template-rows: 50px 80px; |
| 15 /* Make the grid shrink-to-fit. */ | 12 /* Make the grid shrink-to-fit. */ |
| 16 position: absolute; | 13 position: absolute; |
| 17 } | 14 } |
| 18 </style> | 15 </style> |
| 19 <script src="../../resources/check-layout.js"></script> | 16 <script src="../../resources/check-layout.js"></script> |
| 20 <body onload="checkLayout('.grid');"> | 17 <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> | 18 <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> | 19 <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> | 20 <div class="grid gridNoColumn" data-expected-width="0" data-expected-height="130
"></div> |
| 24 </body> | 21 </body> |
| 25 </html> | 22 </html> |
| OLD | NEW |