OLD | NEW |
| (Empty) |
1 <!-- Based on fast/repaint/justify-self-change.html --> | |
2 <!DOCTYPE HTML> | |
3 <script src="resources/paint-invalidation-test.js"></script> | |
4 <script> | |
5 function paintInvalidationTest() { | |
6 document.getElementsByClassName('item1')[0].style.justifySelf = 'start'; | |
7 document.getElementsByClassName('item2')[0].style.justifySelf = 'end'; | |
8 } | |
9 onload = runPaintInvalidationTest; | |
10 </script> | |
11 <style> | |
12 body { | |
13 margin: 0; | |
14 } | |
15 #container { | |
16 display: grid; | |
17 grid: 100px 100px / 150px 150px; | |
18 justify-items: center; | |
19 width: 200px; | |
20 height: 300px; | |
21 background-color: red; | |
22 } | |
23 .item1 { | |
24 grid-row: 1; | |
25 grid-column: 1; | |
26 background-color: green; | |
27 border: solid thin blue; | |
28 width: 50px; | |
29 } | |
30 .item2 { | |
31 grid-row: 1; | |
32 grid-column: 2; | |
33 background-color: green; | |
34 border: solid thin blue; | |
35 width: 50px; | |
36 </style> | |
37 <p style="height: 20px">Tests invalidation on justify-self style change. Passes
if there is no red.</p> | |
38 <div id="container"> | |
39 <div class="item1"> | |
40 <div style="height: 150px"></div> | |
41 </div> | |
42 <div class="item2"> | |
43 <div style="height: 100px"></div> | |
44 </div> | |
45 </div> | |
OLD | NEW |