Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / align-content-change.html
blob6978f3a065414e7656dfecac098e9fca6ea4d41c
1 <!-- Based on fast/repaint/align-content-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",
8 "LayoutBlockFlow DIV class='item'",
9 "LayoutBlockFlow DIV",
11 function paintInvalidationTest() {
12 document.getElementById('container').style.alignContent = 'stretch';
14 onload = runPaintInvalidationTest;
15 </script>
16 <style>
17 body {
18 margin: 0;
20 #container {
21 display: flex;
22 align-content: space-around;
23 flex-flow: row wrap;
24 width: 200px;
25 height: 300px;
26 background-color: red;
28 .item {
29 background-color: green;
30 border: solid thin blue;
31 width: 200px;
33 </style>
34 <p style="height: 20px">Tests invalidation on align-content style change. Passes if there is no red.</p>
35 <div id="container">
36 <div class="item">
37 <div style="height: 50px"></div>
38 </div>
39 <div class="item">
40 <div style="height: 50px"></div>
41 </div>
42 </div>