| 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 <script src="../../resources/check-layout.js"></script> | 4 <script src="../../resources/check-layout.js"></script> |
| 9 <style> | 5 <style> |
| 10 .grid { | 6 .grid { |
| 11 grid-template-columns: 50px 100px; | 7 grid-template-columns: 50px 100px; |
| 12 grid-template-rows: 50px 100px; | 8 grid-template-rows: 50px 100px; |
| 13 } | 9 } |
| 14 </style> | 10 </style> |
| 15 <script> | 11 <script> |
| 16 function testGrid(flow, positionAndSize) | 12 function testGrid(flow, positionAndSize) |
| (...skipping 22 matching lines...) Expand all Loading... |
| 39 <body> | 35 <body> |
| 40 <div>This test checks that updating the grid's element's grid-auto-flow property
recomputes the grid.</div> | 36 <div>This test checks that updating the grid's element's grid-auto-flow property
recomputes the grid.</div> |
| 41 <div style="position: relative"> | 37 <div style="position: relative"> |
| 42 <div class="grid"> | 38 <div class="grid"> |
| 43 <div class="sizedToGridArea autoRowAutoColumn" id="autoItem" data-offset
-x="0" data-offset-y="0" data-expected-width="50" data-expected-height="50"></di
v> | 39 <div class="sizedToGridArea autoRowAutoColumn" id="autoItem" data-offset
-x="0" data-offset-y="0" data-expected-width="50" data-expected-height="50"></di
v> |
| 44 <div class="sizedToGridArea firstRowFirstColumn" data-offset-x="0" data-
offset-y="0" data-expected-width="50" data-expected-height="50"></div> | 40 <div class="sizedToGridArea firstRowFirstColumn" data-offset-x="0" data-
offset-y="0" data-expected-width="50" data-expected-height="50"></div> |
| 45 </div> | 41 </div> |
| 46 </div> | 42 </div> |
| 47 </body> | 43 </body> |
| 48 </html> | 44 </html> |
| OLD | NEW |