1 <!-- Based on fast/css-grid-layout/grid-element-change-rows-repaint.html -->
4 <script src=
"resources/paint-invalidation-test.js"></script>
6 window
.expectedPaintInvalidationObjects
= [
7 "LayoutGrid DIV class='grid'",
8 "LayoutBlockFlow DIV class='sizedToGridArea'",
10 function paintInvalidationTest()
12 var gridElement
= document
.getElementsByClassName("grid")[0];
13 gridElement
.style
.gridTemplateRows
= "100px 50px";
15 window
.addEventListener("load", runPaintInvalidationTest
, false);
17 <link href=
"../../../fast/css-grid-layout/resources/grid.css" rel=
"stylesheet">
24 width: -webkit-fit-content;
25 grid-template-rows:
50px
100px;
26 grid-template-columns:
100px;
29 background-color: purple;
33 <div>This test checks that changing the grid-template-rows lead to a repaint. The final grid element should be
100px *
150px, the grid item should be
100px *
100px. No trace of the elements before the grid-template-rows change should be seen.
</div>
34 <div class=
"constrainedContainer">
36 <div class=
"sizedToGridArea"></div>