1 <!-- Based on fast/repaint/justify-self-change.html -->
3 <script src=
"resources/paint-invalidation-test.js"></script>
5 window
.expectedPaintInvalidationObjects
= [
6 "LayoutBlockFlow DIV class='item1'",
8 "LayoutBlockFlow DIV class='item2'",
11 function paintInvalidationTest() {
12 document
.getElementsByClassName('item1')[0].style
.justifySelf
= 'start';
13 document
.getElementsByClassName('item2')[0].style
.justifySelf
= 'end';
15 onload
= runPaintInvalidationTest
;
23 grid:
100px
100px /
150px
150px;
24 justify-items: center;
27 background-color: red;
32 background-color: green;
33 border: solid thin blue;
39 background-color: green;
40 border: solid thin blue;
43 <p style=
"height: 20px">Tests invalidation on justify-self style change. Passes if there is no red.
</p>
46 <div style=
"height: 150px"></div>
49 <div style=
"height: 100px"></div>