Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / align-self-change-grid.html
blobb703ade700370193a204d3475b2524c608d62fa2
1 <!-- Based on fast/repaint/align-self-change-grid.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 ];
10 function paintInvalidationTest() {
11 document.getElementsByClassName('item1')[0].style.alignSelf = 'stretch';
12 document.getElementsByClassName('item2')[0].style.alignSelf = 'stretch';
14 onload = runPaintInvalidationTest;
15 </script>
16 <style>
17 body {
18 margin: 0;
20 #container {
21 display: grid;
22 grid: 100px 100px / 300px;
23 width: 200px;
24 height: 300px;
25 background-color: red;
27 .item1 {
28 grid-row: 1;
29 grid-column: 1;
30 align-self: end;
31 background-color: green;
33 .item2 {
34 grid-row: 1;
35 grid-column: 2;
36 align-self: start;
37 background-color: green;
39 </style>
40 <p style="height: 20px">Tests invalidation on align-self style change. Passes if there is no red.</p>
41 <div id="container">
42 <div class="item1">
43 <div style="height: 50px"></div>
44 </div>
45 <div class="item2">
46 <div style="height: 50px"></div>
47 </div>
48 </div>