| OLD | NEW |
| 1 <!-- Based on fast/css-grid-layout/grid-element-change-rows-repaint.html --> | 1 <!-- Based on fast/css-grid-layout/grid-element-change-rows-repaint.html --> |
| 2 <!DOCTYPE html> | 2 <!DOCTYPE html> |
| 3 <html> | 3 <html> |
| 4 <script src="resources/paint-invalidation-test.js"></script> | 4 <script src="resources/paint-invalidation-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 window.expectedPaintInvalidationObjects = [ | |
| 7 "LayoutGrid DIV class='grid'", | |
| 8 "LayoutBlockFlow DIV class='sizedToGridArea'", | |
| 9 ]; | |
| 10 function paintInvalidationTest() | 6 function paintInvalidationTest() |
| 11 { | 7 { |
| 12 var gridElement = document.getElementsByClassName("grid")[0]; | 8 var gridElement = document.getElementsByClassName("grid")[0]; |
| 13 gridElement.style.gridTemplateRows = "100px 50px"; | 9 gridElement.style.gridTemplateRows = "100px 50px"; |
| 14 } | 10 } |
| 15 window.addEventListener("load", runPaintInvalidationTest, false); | 11 window.addEventListener("load", runPaintInvalidationTest, false); |
| 16 </script> | 12 </script> |
| 17 <link href="../../../fast/css-grid-layout/resources/grid.css" rel="stylesheet"> | 13 <link href="../../../fast/css-grid-layout/resources/grid.css" rel="stylesheet"> |
| 18 <style> | 14 <style> |
| 19 body { | 15 body { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 31 </style> | 27 </style> |
| 32 <body> | 28 <body> |
| 33 <div>This test checks that changing the grid-template-rows lead to a repaint. Th
e final grid element should be 100px * 150px, the grid item should be 100px * 10
0px. No trace of the elements before the grid-template-rows change should be see
n.</div> | 29 <div>This test checks that changing the grid-template-rows lead to a repaint. Th
e final grid element should be 100px * 150px, the grid item should be 100px * 10
0px. No trace of the elements before the grid-template-rows change should be see
n.</div> |
| 34 <div class="constrainedContainer"> | 30 <div class="constrainedContainer"> |
| 35 <div class="grid"> | 31 <div class="grid"> |
| 36 <div class="sizedToGridArea"></div> | 32 <div class="sizedToGridArea"></div> |
| 37 </div> | 33 </div> |
| 38 </div> | 34 </div> |
| 39 </body> | 35 </body> |
| 40 </html> | 36 </html> |
| OLD | NEW |