OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <script src="resources/text-based-repaint.js"></script> | 2 <script src="resources/text-based-repaint.js"></script> |
3 <script> | 3 <script> |
4 function repaintTest() { | 4 function repaintTest() { |
5 document.getElementById('parentContainer').style.justifyItems = 'legacy center
'; | 5 document.getElementById('parentContainer').style.justifyItems = 'legacy center
'; |
6 } | 6 } |
7 onload = runRepaintTest; | 7 onload = runRepaintTest; |
8 </script> | 8 </script> |
9 <style> | 9 <style> |
10 body { | 10 body { |
(...skipping 20 matching lines...) Expand all Loading... |
31 border: solid thin blue; | 31 border: solid thin blue; |
32 width: 50px; | 32 width: 50px; |
33 } | 33 } |
34 .item2 { | 34 .item2 { |
35 grid-row: 1; | 35 grid-row: 1; |
36 grid-column: 2; | 36 grid-column: 2; |
37 background-color: green; | 37 background-color: green; |
38 border: solid thin blue; | 38 border: solid thin blue; |
39 width: 50px; | 39 width: 50px; |
40 </style> | 40 </style> |
41 <p style="height: 20px">Tests invalidation on justify-items style change. Passes
if there is no red.</p> | 41 <p style="height: 20px">Tests invalidation on justify-items style change (legacy
value). Passes if green bars are centerd inside their red container.</p> |
42 <div id="parentContainer"> | 42 <div id="parentContainer"> |
43 <div id="container"> | 43 <div id="container"> |
44 <div class="item1"> | 44 <div class="item1"> |
45 <div style="height: 50px"></div> | 45 <div style="height: 50px"></div> |
46 </div> | 46 </div> |
47 <div class="item2"> | 47 <div class="item2"> |
48 <div style="height: 50px"></div> | 48 <div style="height: 50px"></div> |
49 </div> | 49 </div> |
50 </div> | 50 </div> |
51 </div> | 51 </div> |
OLD | NEW |