| 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 .grid { | 9 .grid { |
| 10 grid-definition-columns: 'col' 50px 'col' 100px 'col' 200px 'col'; | 10 grid-definition-columns: (col) 50px (col) 100px (col) 200px (col); |
| 11 grid-definition-rows: 'row' 70px 'row' 140px 'row' 280px 'row'; | 11 grid-definition-rows: (row) 70px (row) 140px (row) 280px (row); |
| 12 } | 12 } |
| 13 .differentNamedGridLines { | 13 .differentNamedGridLines { |
| 14 grid-definition-columns: 'col1' 50px 'col2' 100px 'col3' 200px 'col4'; | 14 grid-definition-columns: (col1) 50px (col2) 100px (col3) 200px (col4); |
| 15 grid-definition-rows: 'row1' 70px 'row2' 140px 'row3' 280px 'row4'; | 15 grid-definition-rows: (row1) 70px (row2) 140px (row3) 280px (row4); |
| 16 } | 16 } |
| 17 </style> | 17 </style> |
| 18 <script src="../../resources/check-layout.js"></script> | 18 <script src="../../resources/check-layout.js"></script> |
| 19 <script> | 19 <script> |
| 20 function testPosition(position, size) | 20 function testPosition(position, size) |
| 21 { | 21 { |
| 22 gridItem = document.getElementsByClassName("grid")[0].firstChild; | 22 gridItem = document.getElementsByClassName("grid")[0].firstChild; |
| 23 gridItem.style.gridColumn = position.column; | 23 gridItem.style.gridColumn = position.column; |
| 24 gridItem.style.gridRow = position.row; | 24 gridItem.style.gridRow = position.row; |
| 25 gridItem.setAttribute("data-expected-width", size.width); | 25 gridItem.setAttribute("data-expected-width", size.width); |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 window.addEventListener("load", updateGridItemPosition, false); | 181 window.addEventListener("load", updateGridItemPosition, false); |
| 182 </script> | 182 </script> |
| 183 <body> | 183 <body> |
| 184 | 184 |
| 185 <p>This test checks that we properly recompute our internal grid when a grid ite
m is moved.</p> | 185 <p>This test checks that we properly recompute our internal grid when a grid ite
m is moved.</p> |
| 186 | 186 |
| 187 <div class="grid"><div class="sizedToGridArea"></div></div> | 187 <div class="grid"><div class="sizedToGridArea"></div></div> |
| 188 | 188 |
| 189 </body> | 189 </body> |
| 190 </html> | 190 </html> |
| OLD | NEW |