Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / repaint / justify-self-overflow-change.html
blob20ea8d2f571fe3ef4f0c738d666e7c7f614a0aa5
1 <!DOCTYPE HTML>
2 <script src="resources/text-based-repaint.js"></script>
3 <script>
4 function repaintTest() {
5 document.getElementsByClassName('item1')[0].style.justifySelf = 'end safe';
6 document.getElementsByClassName('item2')[0].style.justifySelf = 'end safe';
8 onload = runRepaintTest;
9 </script>
10 <style>
11 body {
12 margin: 0;
14 #container {
15 display: grid;
16 grid: 100px 100px / 300px;
17 width: 200px;
18 height: 300px;
19 background-color: red;
21 .item1 {
22 grid-row: 1;
23 grid-column: 1;
24 justify-self: end true;
25 background-color: green;
26 width: 150px;
28 .item2 {
29 grid-row: 1;
30 grid-column: 2;
31 background-color: green;
32 justify-self: end true;
33 width: 50px;
34 </style>
35 <p style="height: 20px">Tests invalidation on justify-self style change. Passes if there is no red.</p>
36 <div id="container">
37 <div class="item1">
38 <div style="height: 150px"></div>
39 </div>
40 <div class="item2">
41 <div style="height: 100px"></div>
42 </div>
43 </div>