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