| OLD | NEW |
| 1 <!-- Based on fast/repaint/align-self-change.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 "LayoutBlockFlow DIV class='item'", |
| 7 "LayoutBlockFlow DIV class='item'", |
| 8 ]; |
| 9 function paintInvalidationTest() { |
| 5 document.getElementsByClassName('item')[0].style.alignSelf = 'stretch'; | 10 document.getElementsByClassName('item')[0].style.alignSelf = 'stretch'; |
| 6 document.getElementsByClassName('item')[1].style.alignSelf = 'stretch'; | 11 document.getElementsByClassName('item')[1].style.alignSelf = 'stretch'; |
| 7 } | 12 } |
| 8 onload = runRepaintTest; | 13 onload = runPaintInvalidationTest; |
| 9 </script> | 14 </script> |
| 10 <style> | 15 <style> |
| 11 body { | 16 body { |
| 12 margin: 0; | 17 margin: 0; |
| 13 } | 18 } |
| 14 .flex { | 19 .flex { |
| 15 display: flex; | 20 display: flex; |
| 16 align-items: flex-start; | 21 align-items: flex-start; |
| 17 width: 200px; | 22 width: 200px; |
| 18 height: 300px; | 23 height: 300px; |
| 19 background-color: red; | 24 background-color: red; |
| 20 } | 25 } |
| 21 .item { | 26 .item { |
| 22 background-color: green; | 27 background-color: green; |
| 23 border: solid thin blue; | 28 border: solid thin blue; |
| 24 width: 100px; | 29 width: 100px; |
| 25 } | 30 } |
| 26 </style> | 31 </style> |
| 27 <p style="height: 20px">Tests invalidation on align-self style change. Passes if
there is no red.</p> | 32 <p style="height: 20px">Tests invalidation on align-self style change. Passes if
there is no red.</p> |
| 28 <div class="flex"> | 33 <div class="flex"> |
| 29 <div class="item"> | 34 <div class="item"> |
| 30 <div style="height: 100px"></div> | 35 <div style="height: 100px"></div> |
| 31 </div> | 36 </div> |
| 32 <div class="item"> | 37 <div class="item"> |
| 33 <div style="height: 150px"></div> | 38 <div style="height: 150px"></div> |
| 34 </div> | 39 </div> |
| 35 </div> | 40 </div> |
| OLD | NEW |