1 <!-- Based on fast/repaint/justify-content-distribution-change-grid.html -->
3 <script src=
"resources/paint-invalidation-test.js"></script>
5 window
.expectedPaintInvalidationObjects
= [
6 "LayoutGrid DIV id='container'",
7 "LayoutBlockFlow DIV class='item'",
9 "LayoutBlockFlow DIV class='item'",
10 "LayoutBlockFlow DIV",
11 "LayoutBlockFlow DIV class='item'",
12 "LayoutBlockFlow DIV",
14 function paintInvalidationTest() {
15 document
.getElementById('container').style
.justifyContent
= 'stretch';
17 onload
= runPaintInvalidationTest
;
25 grid-auto-columns: auto;
26 grid-auto-rows:
200px;
27 grid-auto-flow: column;
28 justify-content: space-around;
31 background-color: red;
34 background-color: green;
37 <p style=
"height: 20px">Tests invalidation on justify-content style change (distribution). Passes if there is no red.
</p>
40 <div style=
"width: 50px"></div>
43 <div style=
"width: 50px"></div>
46 <div style=
"width: 50px"></div>