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