Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / justify-self-change.html
blob8d0e10f7ebd365deba7f609928f6baf04b0dd3c2
1 <!-- Based on fast/repaint/justify-self-change.html -->
2 <!DOCTYPE HTML>
3 <script src="resources/paint-invalidation-test.js"></script>
4 <script>
5 window.expectedPaintInvalidationObjects = [
6 "LayoutBlockFlow DIV class='item1'",
7 "LayoutBlockFlow DIV",
8 "LayoutBlockFlow DIV class='item2'",
9 "LayoutBlockFlow DIV",
11 function paintInvalidationTest() {
12 document.getElementsByClassName('item1')[0].style.justifySelf = 'start';
13 document.getElementsByClassName('item2')[0].style.justifySelf = 'end';
15 onload = runPaintInvalidationTest;
16 </script>
17 <style>
18 body {
19 margin: 0;
21 #container {
22 display: grid;
23 grid: 100px 100px / 150px 150px;
24 justify-items: center;
25 width: 200px;
26 height: 300px;
27 background-color: red;
29 .item1 {
30 grid-row: 1;
31 grid-column: 1;
32 background-color: green;
33 border: solid thin blue;
34 width: 50px;
36 .item2 {
37 grid-row: 1;
38 grid-column: 2;
39 background-color: green;
40 border: solid thin blue;
41 width: 50px;
42 </style>
43 <p style="height: 20px">Tests invalidation on justify-self style change. Passes if there is no red.</p>
44 <div id="container">
45 <div class="item1">
46 <div style="height: 150px"></div>
47 </div>
48 <div class="item2">
49 <div style="height: 100px"></div>
50 </div>
51 </div>