| <!-- Based on fast/repaint/align-self-change-keeping-geometry.html --> |
| <!DOCTYPE HTML> |
| <script src="resources/paint-invalidation-test.js"></script> |
| <script> |
| if (window.testRunner) |
| testRunner.dumpAsText(); |
| function paintInvalidationTest() { |
| document.getElementsByClassName('item')[0].style.alignSelf = 'stretch'; |
| document.getElementsByClassName('item')[1].style.alignSelf = 'stretch'; |
| } |
| onload = runPaintInvalidationTest; |
| </script> |
| <style> |
| .flex { |
| display: flex; |
| align-items: flex-start; |
| width: 200px; |
| height: 300px; |
| background-color: red; |
| } |
| .item { |
| background-color: green; |
| border: solid thin blue; |
| width: 100px; |
| height: 300px; |
| } |
| </style> |
| <p style="height: 20px">There should be no invalidations because align-self style change causes no visual change.</p> |
| <div class="flex"> |
| <div class="item"></div> |
| <div class="item"></div> |
| </div> |