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