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