| OLD | NEW |
| (Empty) |
| 1 <!-- Based on fast/css-grid-layout/grid-element-change-columns-repaint.html --> | |
| 2 <!DOCTYPE html> | |
| 3 <html> | |
| 4 <script src="resources/paint-invalidation-test.js"></script> | |
| 5 <script> | |
| 6 function paintInvalidationTest() | |
| 7 { | |
| 8 var gridElement = document.getElementsByClassName("grid")[0]; | |
| 9 gridElement.style.gridTemplateColumns = "minmax(50px, 180px) 100px 100px"; | |
| 10 } | |
| 11 window.addEventListener("load", runPaintInvalidationTest, false); | |
| 12 </script> | |
| 13 <link href="../../../fast/css-grid-layout/resources/grid.css" rel="stylesheet"> | |
| 14 <style> | |
| 15 body { | |
| 16 font: 10px/1 Ahem; | |
| 17 } | |
| 18 | |
| 19 .grid { | |
| 20 width: -webkit-fit-content; | |
| 21 grid-template-rows: 50px; | |
| 22 grid-template-columns: minmax(100px, 180px) 100px minmax(50px, 100px); | |
| 23 } | |
| 24 .sizedToGridArea { | |
| 25 background-color: purple; | |
| 26 } | |
| 27 </style> | |
| 28 <body> | |
| 29 <div> This test checks that changing the grid-template-columns lead to a repaint
. The final grid element should be 250px * 50px, the grid item should be 50px *
50px. No trace of the elements before the grid-template-columns change should be
seen.</div> | |
| 30 <div class="constrainedContainer"> | |
| 31 <div class="grid"> | |
| 32 <div class="sizedToGridArea"></div> | |
| 33 </div> | |
| 34 </div> | |
| 35 </body> | |
| 36 </html> | |
| OLD | NEW |