| OLD | NEW |
| 1 <!-- Based on fast/repaint/align-content-change-keeping-geometry.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.getElementById('container').style.alignContent = 'center'; | 8 document.getElementById('container').style.alignContent = 'center'; |
| 6 } | 9 } |
| 7 onload = runRepaintTest; | 10 onload = runPaintInvalidationTest; |
| 8 </script> | 11 </script> |
| 9 <style> | 12 <style> |
| 10 #container { | 13 #container { |
| 11 display: flex; | 14 display: flex; |
| 12 align-items: flex-start; | 15 align-items: flex-start; |
| 13 width: 200px; | 16 width: 200px; |
| 14 height: 300px; | 17 height: 300px; |
| 15 background-color: red; | 18 background-color: red; |
| 16 } | 19 } |
| 17 .item { | 20 .item { |
| 18 background-color: green; | 21 background-color: green; |
| 19 border: solid thin blue; | 22 border: solid thin blue; |
| 20 width: 100px; | 23 width: 100px; |
| 21 height: 300px; | 24 height: 300px; |
| 22 } | 25 } |
| 23 </style> | 26 </style> |
| 24 <p style="height: 20px">There should be no invalidations because align-content s
tyle change causes no visual change.</p> | 27 <p style="height: 20px">There should be no invalidations because align-content s
tyle change causes no visual change.</p> |
| 25 <div id="container"> | 28 <div id="container"> |
| 26 <div class="item"></div> | 29 <div class="item"></div> |
| 27 <div class="item"></div> | 30 <div class="item"></div> |
| 28 </div> | 31 </div> |
| OLD | NEW |