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