1 <!-- Based on fast/repaint/align-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 BODY",
12 "LayoutGrid DIV id='container'",
13 "LayoutBlockFlow DIV class='item1'",
14 "LayoutBlockFlow DIV",
15 "LayoutBlockFlow DIV class='item2'",
16 "LayoutBlockFlow DIV",
18 function paintInvalidationTest() {
19 document
.getElementById('container').style
.alignItems
= 'end safe';
21 onload
= runPaintInvalidationTest
;
29 grid:
200px /
150px
150px;
30 align-items: end true;
33 background-color: red;
38 background-color: green;
43 background-color: green;
46 <p style=
"height: 20px">Tests invalidation on align-items style change (just overflow). Passes if there is no red.
</p>
49 <div style=
"height: 200px"></div>
52 <div style=
"height: 100px"></div>