| OLD | NEW |
| 1 <!-- Based on fast/repaint/justify-items-legacy-change.html --> | 1 <!-- Based on fast/repaint/justify-items-legacy-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", | |
| 7 "LayoutBlockFlow DIV class='item1'", | |
| 8 "LayoutBlockFlow DIV", | |
| 9 "LayoutBlockFlow DIV class='item2'", | |
| 10 "LayoutGrid DIV id='container'", | |
| 11 "LayoutBlockFlow DIV id='parentContainer'", | |
| 12 "LayoutBlockFlow DIV id='parentContainer'", | |
| 13 "LayoutGrid DIV id='container'", | |
| 14 "LayoutBlockFlow DIV class='item1'", | |
| 15 "LayoutBlockFlow DIV", | |
| 16 "LayoutBlockFlow DIV class='item2'", | |
| 17 "LayoutBlockFlow DIV", | |
| 18 ]; | |
| 19 function paintInvalidationTest() { | 5 function paintInvalidationTest() { |
| 20 document.getElementById('parentContainer').style.justifyItems = 'legacy center
'; | 6 document.getElementById('parentContainer').style.justifyItems = 'legacy center
'; |
| 21 } | 7 } |
| 22 onload = runPaintInvalidationTest; | 8 onload = runPaintInvalidationTest; |
| 23 </script> | 9 </script> |
| 24 <style> | 10 <style> |
| 25 body { | 11 body { |
| 26 margin: 0; | 12 margin: 0; |
| 27 } | 13 } |
| 28 #parentContainer { | 14 #parentContainer { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 57 <div id="parentContainer"> | 43 <div id="parentContainer"> |
| 58 <div id="container"> | 44 <div id="container"> |
| 59 <div class="item1"> | 45 <div class="item1"> |
| 60 <div style="height: 50px"></div> | 46 <div style="height: 50px"></div> |
| 61 </div> | 47 </div> |
| 62 <div class="item2"> | 48 <div class="item2"> |
| 63 <div style="height: 50px"></div> | 49 <div style="height: 50px"></div> |
| 64 </div> | 50 </div> |
| 65 </div> | 51 </div> |
| 66 </div> | 52 </div> |
| OLD | NEW |