Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / justify-content-change.html
blob15e714d6a38df2a09cb2867e6c1aceec397ce7fd
1 <!-- Based on fast/repaint/justify-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.justifyContent = 'space-between';
14 onload = runPaintInvalidationTest;
15 </script>
16 <style>
17 body {
18 margin: 0;
20 #container {
21 display: flex;
22 justify-content: space-around;
23 width: 200px;
24 height: 300px;
25 background-color: orange;
27 .item {
28 background-color: green;
29 border: solid thin blue;
30 width: 50px;
32 </style>
33 <p style="height: 20px">Tests invalidation on justify-content style change. Passes if only one big orange bar appear in the middle of the box.</p>
34 <div id="container">
35 <div class="item">
36 <div style="height: 50px"></div>
37 </div>
38 <div class="item">
39 <div style="height: 50px"></div>
40 </div>
41 </div>