1 <!-- Based on fast/repaint/align-items-change.html -->
3 <script src=
"resources/paint-invalidation-test.js"></script>
5 window
.expectedPaintInvalidationObjects
= [
7 "LayoutBlockFlow DIV class='item'",
9 "LayoutBlockFlow DIV class='item'",
10 "LayoutFlexibleBox DIV id='container'",
11 "LayoutFlexibleBox DIV id='container'",
12 "LayoutBlockFlow DIV class='item'",
13 "LayoutBlockFlow DIV",
14 "LayoutBlockFlow DIV class='item'",
15 "LayoutBlockFlow DIV",
17 function paintInvalidationTest() {
18 document
.getElementById('container').style
.alignItems
= 'stretch';
20 onload
= runPaintInvalidationTest
;
28 align-items: flex-start;
31 background-color: red;
34 background-color: green;
35 border: solid thin blue;
39 <p style=
"height: 20px">Tests invalidation on align-items style change. Passes if there is no red.
</p>
42 <div style=
"height: 100px"></div>
45 <div style=
"height: 150px"></div>