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