| OLD | NEW |
| 1 <!-- Based on fast/repaint/absolute-layer-specified-left-or-right-auto-width-mov
ed-vertically.html --> | 1 <!-- Based on fast/repaint/absolute-layer-specified-left-or-right-auto-width-mov
ed-vertically.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 = [ | 5 if (window.testRunner) |
| 6 ]; | 6 testRunner.dumpAsText(); |
| 7 function paintInvalidationTest() | 7 function paintInvalidationTest() |
| 8 { | 8 { |
| 9 document.getElementById('left').style.top = '400px'; | 9 document.getElementById('left').style.top = '400px'; |
| 10 document.getElementById('right').style.top = '400px'; | 10 document.getElementById('right').style.top = '400px'; |
| 11 } | 11 } |
| 12 | 12 |
| 13 window.onload = runPaintInvalidationTest; | 13 window.onload = runPaintInvalidationTest; |
| 14 </script> | 14 </script> |
| 15 | 15 |
| 16 <style> | 16 <style> |
| 17 #left, #right { | 17 #left, #right { |
| 18 position: absolute; | 18 position: absolute; |
| 19 top: 200px; | 19 top: 200px; |
| 20 -webkit-backface-visibility: hidden; | 20 -webkit-backface-visibility: hidden; |
| 21 } | 21 } |
| 22 #left { | 22 #left { |
| 23 left: 0px; | 23 left: 0px; |
| 24 } | 24 } |
| 25 #right { | 25 #right { |
| 26 right: 0px; | 26 right: 0px; |
| 27 } | 27 } |
| 28 </style> | 28 </style> |
| 29 | 29 |
| 30 There should be no repaint when the divs are moved vertically. | 30 There should be no repaint when the divs are moved vertically. |
| 31 <div id="left">Left</div> | 31 <div id="left">Left</div> |
| 32 <div id="right">Right</div> | 32 <div id="right">Right</div> |
| 33 <pre id="result"></pre> | 33 <pre id="result"></pre> |
| OLD | NEW |