Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / justify-content-position-change-grid.html
blobb055941f5dd9ccef9e2c5ea1d336412d06171ec8
1 <!-- Based on fast/repaint/justify-content-position-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 = 'end';
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: start;
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 (position). Passes if the red half is on the left.</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>