| OLD | NEW |
| 1 <!-- Based on fast/repaint/justify-content-position-change.html --> | 1 <!-- Based on fast/repaint/justify-content-position-change.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 "LayoutBlockFlow DIV class='item'", | |
| 7 "LayoutBlockFlow DIV", | |
| 8 "LayoutBlockFlow DIV class='item'", | |
| 9 "LayoutBlockFlow DIV", | |
| 10 ]; | |
| 11 function paintInvalidationTest() { | 5 function paintInvalidationTest() { |
| 12 document.getElementById('container').style.justifyContent = 'flex-start'; | 6 document.getElementById('container').style.justifyContent = 'flex-start'; |
| 13 } | 7 } |
| 14 onload = runPaintInvalidationTest; | 8 onload = runPaintInvalidationTest; |
| 15 </script> | 9 </script> |
| 16 <style> | 10 <style> |
| 17 body { | 11 body { |
| 18 margin: 0; | 12 margin: 0; |
| 19 } | 13 } |
| 20 #container { | 14 #container { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 32 </style> | 26 </style> |
| 33 <p style="height: 20px">Tests invalidation on justify-content style change. Pass
es if only one big orange bar appear aligned to the box's right edge.</p> | 27 <p style="height: 20px">Tests invalidation on justify-content style change. Pass
es if only one big orange bar appear aligned to the box's right edge.</p> |
| 34 <div id="container"> | 28 <div id="container"> |
| 35 <div class="item"> | 29 <div class="item"> |
| 36 <div style="height: 50px"></div> | 30 <div style="height: 50px"></div> |
| 37 </div> | 31 </div> |
| 38 <div class="item"> | 32 <div class="item"> |
| 39 <div style="height: 50px"></div> | 33 <div style="height: 50px"></div> |
| 40 </div> | 34 </div> |
| 41 </div> | 35 </div> |
| OLD | NEW |