| 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.alignSelf = 'stretch'; | 5   document.getElementsByClassName('item1')[0].style.alignSelf = 'stretch'; | 
| 6   document.getElementsByClassName('item2')[0].style.alignSelf = 'stretch'; | 6   document.getElementsByClassName('item2')[0].style.alignSelf = 'end'; | 
|  | 7   document.getElementsByClassName('item3')[0].style.alignSelf = 'start'; | 
| 7 } | 8 } | 
| 8 onload = runRepaintAndPixelTest; | 9 onload = runRepaintAndPixelTest; | 
| 9 </script> | 10 </script> | 
| 10 <style> | 11 <style> | 
| 11 body { | 12 body { | 
| 12   margin: 0; | 13   margin: 0; | 
| 13 } | 14 } | 
| 14 #container { | 15 #container { | 
| 15   display: grid; | 16   display: grid; | 
| 16   align-items: start; | 17   align-items: start; | 
| 17   grid: 300px / 100px 100px; | 18   grid: 300px / 100px 100px; | 
| 18   width: 200px; | 19   width: 200px; | 
| 19   height: 300px; | 20   height: 300px; | 
| 20   background-color: red; | 21   background-color: red; | 
| 21 } | 22 } | 
| 22 .item1 { | 23 .item1 { | 
| 23   grid-row: 1; | 24   grid-row: 1; | 
| 24   grid-column: 1; | 25   grid-column: 1; | 
| 25   height: 300px; |  | 
| 26   background-color: green; | 26   background-color: green; | 
|  | 27   width: 100px; | 
| 27 } | 28 } | 
| 28 .item2 { | 29 .item2 { | 
| 29   grid-row: 1; | 30   grid-row: 1; | 
| 30   grid-column: 2; | 31   grid-column: 2; | 
|  | 32   align-self: start; | 
|  | 33   background-color: green; | 
| 31   height: 300px; | 34   height: 300px; | 
|  | 35   width: 100px; | 
|  | 36 } | 
|  | 37 .item3 { | 
|  | 38   grid-row: 1; | 
|  | 39   grid-column: 2; | 
|  | 40   align-self: end; | 
| 32   background-color: green; | 41   background-color: green; | 
|  | 42   height: 300px; | 
|  | 43   width: 100px; | 
| 33 } | 44 } | 
| 34 </style> | 45 </style> | 
| 35 <p style="height: 20px">There should be no invalidations because align-self styl
    e change causes no visual change.</p> | 46 <p style="height: 20px">There should be no invalidations because align-self styl
    e change causes no visual change.</p> | 
| 36 <div id="container"> | 47 <div id="container"> | 
| 37   <div id="item1" class="item1"></div> | 48   <div class="item1"> | 
| 38   <div id="item2" class="item2"></div> | 49     <div style="height: 300px;"></div> | 
|  | 50   </div> | 
|  | 51   <div class="item2"></div> | 
|  | 52   <div class="item3"></div> | 
| 39 </div> | 53 </div> | 
| OLD | NEW | 
|---|