OLD | NEW |
| (Empty) |
1 <!-- Based on fast/css-grid-layout/grid-element-change-rows-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.gridTemplateRows = "100px 50px"; | |
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 100px; | |
22 grid-template-columns: 100px; | |
23 } | |
24 .sizedToGridArea { | |
25 background-color: purple; | |
26 } | |
27 </style> | |
28 <body> | |
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> | |
30 <div class="constrainedContainer"> | |
31 <div class="grid"> | |
32 <div class="sizedToGridArea"></div> | |
33 </div> | |
34 </div> | |
35 </body> | |
36 </html> | |
OLD | NEW |