1 <!-- Based on fast/repaint/align-self-overflow-change.html -->
3 <script src=
"resources/paint-invalidation-test.js"></script>
5 window
.expectedPaintInvalidationObjects
= [
6 "LayoutBlockFlow BODY",
7 "LayoutGrid DIV id='container'",
8 "LayoutBlockFlow DIV class='item1'",
10 "LayoutBlockFlow DIV class='item2'",
12 function paintInvalidationTest() {
13 document
.getElementsByClassName('item1')[0].style
.alignSelf
= 'end safe';
14 document
.getElementsByClassName('item2')[0].style
.alignSelf
= 'end safe';
16 onload
= runPaintInvalidationTest
;
24 grid:
200px /
150px
150px;
27 background-color: red;
33 background-color: green;
39 background-color: green;
41 <p style=
"height: 20px">Tests invalidation on align-self style change (just overflow). Passes if there is no red.
</p>
44 <div style=
"height: 200px"></div>
47 <div style=
"height: 100px"></div>