1 <!-- Based on fast/css-grid-layout/grid-element-change-columns-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
.gridTemplateColumns
= "minmax(50px, 180px) 100px 100px";
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;
26 grid-template-columns: minmax(
100px,
180px)
100px minmax(
50px,
100px);
29 background-color: purple;
33 <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>
34 <div class=
"constrainedContainer">
36 <div class=
"sizedToGridArea"></div>