OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <link href="resources/grid.css" rel="stylesheet"> | 3 <link href="resources/grid.css" rel="stylesheet"> |
4 <style> | 4 <style> |
5 .grid { | 5 .grid { |
6 grid-template-columns: (col) 50px (col) 100px (col) 200px (col); | 6 grid-template-columns: [col] 50px [col] 100px [col] 200px [col]; |
7 grid-template-rows: (row) 70px (row) 140px (row) 280px (row); | 7 grid-template-rows: [row] 70px [row] 140px [row] 280px [row]; |
8 } | 8 } |
9 .differentNamedGridLines { | 9 .differentNamedGridLines { |
10 grid-template-columns: (col1) 50px (col2) 100px (col3) 200px (col4); | 10 grid-template-columns: [col1] 50px [col2] 100px [col3] 200px [col4]; |
11 grid-template-rows: (row1) 70px (row2) 140px (row3) 280px (row4); | 11 grid-template-rows: [row1] 70px [row2] 140px [row3] 280px [row4]; |
12 } | 12 } |
13 </style> | 13 </style> |
14 <script src="../../resources/check-layout.js"></script> | 14 <script src="../../resources/check-layout.js"></script> |
15 <script> | 15 <script> |
16 function testPosition(position, size) | 16 function testPosition(position, size) |
17 { | 17 { |
18 gridItem = document.getElementsByClassName("grid")[0].firstChild; | 18 gridItem = document.getElementsByClassName("grid")[0].firstChild; |
19 gridItem.style.gridColumn = position.column; | 19 gridItem.style.gridColumn = position.column; |
20 gridItem.style.gridRow = position.row; | 20 gridItem.style.gridRow = position.row; |
21 gridItem.setAttribute("data-expected-width", size.width); | 21 gridItem.setAttribute("data-expected-width", size.width); |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 window.addEventListener("load", updateGridItemPosition, false); | 177 window.addEventListener("load", updateGridItemPosition, false); |
178 </script> | 178 </script> |
179 <body> | 179 <body> |
180 | 180 |
181 <p>This test checks that we properly recompute our internal grid when a grid ite
m is moved.</p> | 181 <p>This test checks that we properly recompute our internal grid when a grid ite
m is moved.</p> |
182 | 182 |
183 <div class="grid"><div class="sizedToGridArea"></div></div> | 183 <div class="grid"><div class="sizedToGridArea"></div></div> |
184 | 184 |
185 </body> | 185 </body> |
186 </html> | 186 </html> |
OLD | NEW |