Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / justify-items-change.html
blobd589bf93b1ed29e40eea08be6db7a57e2dd589bd
1 <!-- Based on fast/repaint/justify-items-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='item'",
8 "LayoutGrid DIV id='container'",
9 "LayoutGrid DIV id='container'",
10 "LayoutBlockFlow DIV class='item'",
11 "LayoutBlockFlow DIV",
13 function paintInvalidationTest() {
14 document.getElementById('container').style.justifyItems = 'start';
16 onload = runPaintInvalidationTest;
17 </script>
18 <style>
19 body {
20 margin: 0;
22 #container {
23 display: grid;
24 grid: 200px / 300px;
25 justify-items: end;
26 width: 200px;
27 height: 300px;
28 background-color: red;
30 .item {
31 grid-row: 1;
32 grid-column: 1;
33 background-color: green;
34 width: 50px;
36 </style>
37 <p style="height: 20px">Tests invalidation on justify-items style change. Passes if green bar is left aligned.</p>
38 <div id="container">
39 <div class="item">
40 <div style="height: 50px"></div>
41 </div>
42 </div>