1 <!-- Based on fast/repaint/justify-items-overflow-change.html -->
3 <script src=
"resources/paint-invalidation-test.js"></script>
5 window
.expectedPaintInvalidationObjects
= [
7 "LayoutBlockFlow DIV class='item1'",
9 "LayoutBlockFlow DIV class='item2'",
10 "LayoutGrid DIV id='container'",
11 "LayoutBlockFlow HTML",
12 "LayoutBlockFlow BODY",
13 "LayoutGrid DIV id='container'",
14 "LayoutBlockFlow DIV class='item1'",
15 "LayoutBlockFlow DIV",
16 "LayoutBlockFlow DIV class='item2'",
17 "LayoutBlockFlow DIV",
19 function paintInvalidationTest() {
20 document
.getElementById('container').style
.justifyItems
= 'end safe';
22 onload
= runPaintInvalidationTest
;
30 grid:
100px
100px /
300px;
31 justify-items: end true;
34 background-color: red;
39 background-color: green;
45 background-color: green;
48 <p style=
"height: 20px">Tests invalidation on justify-items style change. Passes if there is no red.
</p>
51 <div style=
"height: 50px"></div>
54 <div style=
"height: 50px"></div>