1 <!-- Based on fast/repaint/justify-self-overflow-change.html -->
3 <script src=
"resources/paint-invalidation-test.js"></script>
5 window
.expectedPaintInvalidationObjects
= [
6 "LayoutBlockFlow HTML",
7 "LayoutBlockFlow BODY",
8 "LayoutGrid DIV id='container'",
9 "LayoutBlockFlow DIV class='item1'",
10 "LayoutBlockFlow DIV",
11 "LayoutBlockFlow DIV class='item2'",
13 function paintInvalidationTest() {
14 document
.getElementsByClassName('item1')[0].style
.justifySelf
= 'end safe';
15 document
.getElementsByClassName('item2')[0].style
.justifySelf
= 'end safe';
17 onload
= runPaintInvalidationTest
;
25 grid:
100px
100px /
300px;
28 background-color: red;
33 justify-self: end true;
34 background-color: green;
40 background-color: green;
41 justify-self: end true;
44 <p style=
"height: 20px">Tests invalidation on justify-self style change. Passes if there is no red.
</p>
47 <div style=
"height: 150px"></div>
50 <div style=
"height: 100px"></div>