Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / align-items-change.html
blobc5ae0ed6c291f8ec1dc5d74aed25a09ed8da3d9f
1 <!-- Based on fast/repaint/align-items-change.html -->
2 <!DOCTYPE HTML>
3 <script src="resources/paint-invalidation-test.js"></script>
4 <script>
5 window.expectedPaintInvalidationObjects = [
6 "LayoutBlockFlow DIV",
7 "LayoutBlockFlow DIV class='item'",
8 "LayoutBlockFlow DIV",
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;
21 </script>
22 <style>
23 body {
24 margin: 0;
26 #container {
27 display: flex;
28 align-items: flex-start;
29 width: 200px;
30 height: 300px;
31 background-color: red;
33 .item {
34 background-color: green;
35 border: solid thin blue;
36 width: 100px;
38 </style>
39 <p style="height: 20px">Tests invalidation on align-items style change. Passes if there is no red.</p>
40 <div id="container">
41 <div class="item">
42 <div style="height: 100px"></div>
43 </div>
44 <div class="item">
45 <div style="height: 150px"></div>
46 </div>
47 </div>