Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / align-self-change.html
blob20b899c79794ff35aff5d97d21f2f3f6899b44c2
1 <!-- Based on fast/repaint/align-self-change.html -->
2 <!DOCTYPE HTML>
3 <script src="resources/paint-invalidation-test.js"></script>
4 <script>
5 window.expectedPaintInvalidationObjects = [
6 "LayoutBlockFlow DIV class='item'",
7 "LayoutBlockFlow DIV class='item'",
8 ];
9 function paintInvalidationTest() {
10 document.getElementsByClassName('item')[0].style.alignSelf = 'stretch';
11 document.getElementsByClassName('item')[1].style.alignSelf = 'stretch';
13 onload = runPaintInvalidationTest;
14 </script>
15 <style>
16 body {
17 margin: 0;
19 .flex {
20 display: flex;
21 align-items: flex-start;
22 width: 200px;
23 height: 300px;
24 background-color: red;
26 .item {
27 background-color: green;
28 border: solid thin blue;
29 width: 100px;
31 </style>
32 <p style="height: 20px">Tests invalidation on align-self style change. Passes if there is no red.</p>
33 <div class="flex">
34 <div class="item">
35 <div style="height: 100px"></div>
36 </div>
37 <div class="item">
38 <div style="height: 150px"></div>
39 </div>
40 </div>