| 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 <link href="resources/grid-alignment.css" rel="stylesheet"> |
| 4 <script src="../../resources/check-layout.js"></script> | 5 <script src="../../resources/check-layout.js"></script> |
| 5 <style> | 6 <style> |
| 6 .grid { | 7 .grid { |
| 7 grid-auto-flow: row dense; | 8 grid-auto-flow: row dense; |
| 8 } | 9 } |
| 9 #firstGridItem { | 10 #firstGridItem { |
| 10 grid-row: auto; | 11 grid-row: auto; |
| 11 grid-column: column; | 12 grid-column: column; |
| 12 } | 13 } |
| 13 | 14 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 testGridDefinitions('10px 20px [row]', '30px', { 'width': '0', 'height': '10
', 'x': '30', 'y': '0' }, { 'width': '30', 'height': '0', 'x': '0', 'y': '30' },
{ 'width': '30', 'height': '10', 'x': '0', 'y': '0' }); | 57 testGridDefinitions('10px 20px [row]', '30px', { 'width': '0', 'height': '10
', 'x': '30', 'y': '0' }, { 'width': '30', 'height': '0', 'x': '0', 'y': '30' },
{ 'width': '30', 'height': '10', 'x': '0', 'y': '0' }); |
| 57 testGridDefinitions('10px 20px [row]', '30px [column]', { 'width': '0', 'hei
ght': '10', 'x': '30', 'y': '0' }, { 'width': '30', 'height': '0', 'x': '0', 'y'
: '30' }, { 'width': '30', 'height': '10', 'x': '0', 'y': '0' }); | 58 testGridDefinitions('10px 20px [row]', '30px [column]', { 'width': '0', 'hei
ght': '10', 'x': '30', 'y': '0' }, { 'width': '30', 'height': '0', 'x': '0', 'y'
: '30' }, { 'width': '30', 'height': '10', 'x': '0', 'y': '0' }); |
| 58 } | 59 } |
| 59 | 60 |
| 60 window.addEventListener("load", testChangingGridDefinitions, false); | 61 window.addEventListener("load", testChangingGridDefinitions, false); |
| 61 </script> | 62 </script> |
| 62 <body> | 63 <body> |
| 63 <div>This test checks that updating the named grid lines definitions in grid-tem
plate-{rows|columns} recomputes the positions of automatically placed grid items
.</div> | 64 <div>This test checks that updating the named grid lines definitions in grid-tem
plate-{rows|columns} recomputes the positions of automatically placed grid items
.</div> |
| 64 | 65 |
| 65 <div style="position: relative"> | 66 <div style="position: relative"> |
| 66 <div class="grid"> | 67 <div class="grid justifyContentStart"> |
| 67 <div class="sizedToGridArea" id="firstGridItem"></div> | 68 <div class="sizedToGridArea" id="firstGridItem"></div> |
| 68 <div class="sizedToGridArea" id="secondGridItem"></div> | 69 <div class="sizedToGridArea" id="secondGridItem"></div> |
| 69 <div class="sizedToGridArea" id="thirdGridItem"></div> | 70 <div class="sizedToGridArea" id="thirdGridItem"></div> |
| 70 </div> | 71 </div> |
| 71 </div> | 72 </div> |
| 72 | 73 |
| 73 </body> | 74 </body> |
| 74 </html> | 75 </html> |
| OLD | NEW |