OLD | NEW |
| (Empty) |
1 <!-- Based on fast/repaint/justify-self-change-keeping-geometry.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 = 'left'; | |
7 document.getElementsByClassName('item2')[0].style.justifySelf = 'right'; | |
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 width: 200px; | |
19 height: 300px; | |
20 background-color: red; | |
21 } | |
22 .item1 { | |
23 grid-row: 1; | |
24 grid-column: 1; | |
25 justify-self: start; | |
26 background-color: green; | |
27 width: 50px; | |
28 } | |
29 .item2 { | |
30 grid-row: 1; | |
31 grid-column: 2; | |
32 justify-self: end; | |
33 background-color: green; | |
34 width: 50px; | |
35 </style> | |
36 <p style="height: 20px">Tests invalidation on justify-self style change. Passes
if there is no red.</p> | |
37 <div id="container"> | |
38 <div class="item1"> | |
39 <div style="height: 150px"></div> | |
40 </div> | |
41 <div class="item2"> | |
42 <div style="height: 100px"></div> | |
43 </div> | |
44 </div> | |
OLD | NEW |