Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / justify-content-distribution-change-grid.html
blobdd2e2a83247d6456b84d3b82abdeec070ca0f1cd
1 <!-- Based on fast/repaint/justify-content-distribution-change-grid.html -->
2 <!DOCTYPE HTML>
3 <script src="resources/paint-invalidation-test.js"></script>
4 <script>
5 window.expectedPaintInvalidationObjects = [
6 "LayoutGrid DIV id='container'",
7 "LayoutBlockFlow DIV class='item'",
8 "LayoutBlockFlow DIV",
9 "LayoutBlockFlow DIV class='item'",
10 "LayoutBlockFlow DIV",
11 "LayoutBlockFlow DIV class='item'",
12 "LayoutBlockFlow DIV",
14 function paintInvalidationTest() {
15 document.getElementById('container').style.justifyContent = 'stretch';
17 onload = runPaintInvalidationTest;
18 </script>
19 <style>
20 body {
21 margin: 0;
23 #container {
24 display: grid;
25 grid-auto-columns: auto;
26 grid-auto-rows: 200px;
27 grid-auto-flow: column;
28 justify-content: space-around;
29 width: 300px;
30 height: 200px;
31 background-color: red;
33 .item {
34 background-color: green;
36 </style>
37 <p style="height: 20px">Tests invalidation on justify-content style change (distribution). Passes if there is no red.</p>
38 <div id="container">
39 <div class="item">
40 <div style="width: 50px"></div>
41 </div>
42 <div class="item">
43 <div style="width: 50px"></div>
44 </div>
45 <div class="item">
46 <div style="width: 50px"></div>
47 </div>
48 </div>