| 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.getElementsByClassName('item1')[0].style.justifySelf = 'start'; | 5 document.getElementsByClassName('item1')[0].style.justifySelf = 'start'; |
| 6 document.getElementsByClassName('item2')[0].style.justifySelf = 'end'; | 6 document.getElementsByClassName('item2')[0].style.justifySelf = 'end'; |
| 7 } | 7 } |
| 8 onload = runRepaintTest; | 8 onload = runRepaintAndPixelTest; |
| 9 </script> | 9 </script> |
| 10 <style> | 10 <style> |
| 11 body { | 11 body { |
| 12 margin: 0; | 12 margin: 0; |
| 13 } | 13 } |
| 14 #container { | 14 #container { |
| 15 display: grid; | 15 display: grid; |
| 16 grid: 150px 150px / 100px 100px; | 16 grid: 150px 150px / 100px 100px; |
| 17 justify-items: center; | 17 justify-items: center; |
| 18 width: 200px; | 18 width: 200px; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 35 </style> | 35 </style> |
| 36 <p style="height: 20px">Tests invalidation on justify-self style change. Passes
if there is no red.</p> | 36 <p style="height: 20px">Tests invalidation on justify-self style change. Passes
if there is no red.</p> |
| 37 <div id="container"> | 37 <div id="container"> |
| 38 <div class="item1"> | 38 <div class="item1"> |
| 39 <div style="height: 150px"></div> | 39 <div style="height: 150px"></div> |
| 40 </div> | 40 </div> |
| 41 <div class="item2"> | 41 <div class="item2"> |
| 42 <div style="height: 100px"></div> | 42 <div style="height: 100px"></div> |
| 43 </div> | 43 </div> |
| 44 </div> | 44 </div> |
| OLD | NEW |