| OLD | NEW |
| 1 <!-- Based on fast/repaint/justify-self-overflow-change.html --> | 1 <!-- Based on fast/repaint/justify-self-overflow-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 HTML", | |
| 7 "LayoutBlockFlow BODY", | |
| 8 "LayoutGrid DIV id='container'", | |
| 9 "LayoutBlockFlow DIV class='item1'", | |
| 10 "LayoutBlockFlow DIV", | |
| 11 "LayoutBlockFlow DIV class='item2'", | |
| 12 ]; | |
| 13 function paintInvalidationTest() { | 5 function paintInvalidationTest() { |
| 14 document.getElementsByClassName('item1')[0].style.justifySelf = 'end safe'; | 6 document.getElementsByClassName('item1')[0].style.justifySelf = 'end safe'; |
| 15 document.getElementsByClassName('item2')[0].style.justifySelf = 'end safe'; | 7 document.getElementsByClassName('item2')[0].style.justifySelf = 'end safe'; |
| 16 } | 8 } |
| 17 onload = runPaintInvalidationTest; | 9 onload = runPaintInvalidationTest; |
| 18 </script> | 10 </script> |
| 19 <style> | 11 <style> |
| 20 body { | 12 body { |
| 21 margin: 0; | 13 margin: 0; |
| 22 } | 14 } |
| (...skipping 20 matching lines...) Expand all Loading... |
| 43 </style> | 35 </style> |
| 44 <p style="height: 20px">Tests invalidation on justify-self style change. Passes
if there is no red.</p> | 36 <p style="height: 20px">Tests invalidation on justify-self style change. Passes
if there is no red.</p> |
| 45 <div id="container"> | 37 <div id="container"> |
| 46 <div class="item1"> | 38 <div class="item1"> |
| 47 <div style="height: 150px"></div> | 39 <div style="height: 150px"></div> |
| 48 </div> | 40 </div> |
| 49 <div class="item2"> | 41 <div class="item2"> |
| 50 <div style="height: 100px"></div> | 42 <div style="height: 100px"></div> |
| 51 </div> | 43 </div> |
| 52 </div> | 44 </div> |
| OLD | NEW |