| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <script src="resources/text-based-repaint.js"></script> | |
| 3 <script> | |
| 4 function repaintTest() { | |
| 5 document.getElementsByClassName('item')[0].style.alignSelf = 'stretch'; | |
| 6 } | |
| 7 onload = runRepaintTest; | |
| 8 </script> | |
| 9 <style> | 2 <style> |
| 10 body { | 3 body { |
| 11 margin: 0; | 4 margin: 0; |
| 12 } | 5 } |
| 13 #container { | 6 #container { |
| 14 display: grid; | 7 display: grid; |
| 15 grid: 100px / 300px; | 8 grid: 100px / 300px; |
| 16 width: 200px; | 9 width: 200px; |
| 17 height: 300px; | 10 height: 300px; |
| 18 background-color: red; | 11 background-color: red; |
| 19 } | 12 } |
| 20 .item { | 13 .item { |
| 21 grid-row: 1; | 14 grid-row: 1; |
| 22 grid-column: 1; | 15 grid-column: 1; |
| 23 align-self: start; | 16 align-self: stretch; |
| 24 background-color: green; | 17 background-color: green; |
| 25 } | 18 } |
| 26 </style> | 19 </style> |
| 27 <p style="height: 20px">There should be no invalidations because align-self styl
e change causes no visual change.</p> | 20 <p style="height: 20px">There should be no invalidations because align-self styl
e change causes no visual change.</p> |
| 28 <div id="container"> | 21 <div id="container"> |
| 29 <div class="item"> | 22 <div class="item"> |
| 30 <div style="height: 300px"></div> | 23 <div style="height: 300px"></div> |
| 31 </div> | 24 </div> |
| 32 </div> | 25 </div> |
| OLD | NEW |