| OLD | NEW |
| 1 <!-- Based on compositing/squashing/invalidations-with-large-negative-margin.htm
l --> |
| 1 <!DOCTYPE html> | 2 <!DOCTYPE html> |
| 2 <div style="height:200px;width:600px;overflow:scroll"> | 3 <div style="height:200px;width:600px;overflow:scroll"> |
| 3 <div style="position:relative"> | 4 <div style="position:relative"> |
| 4 <div style="height:400px;margin-bottom:-400px;position:relative"> | 5 <div style="height:400px;margin-bottom:-400px;position:relative"> |
| 5 <div id="chip" style="width:50px;height:50px;position:absolute;background:
lightblue;margin:0"></div> | 6 <div id="chip" style="width:50px;height:50px;position:absolute;background:
lightblue;margin:0"></div> |
| 6 </div> | 7 </div> |
| 7 </div> | 8 </div> |
| 8 </div> | 9 </div> |
| 9 | 10 |
| 10 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> | 11 <script src="resources/paint-invalidation-test.js"></script> |
| 11 <script> | 12 <script> |
| 12 // Test that moving a Layer that is squashed relative to its squashing container
repaints correctly. | 13 // Test that moving a Layer that is squashed relative to its squashing container
repaints correctly. |
| 13 // In particular, the repaint rect needs to be recorded in the correct position
relative to the squashing GraphicsLayer. | 14 // In particular, the repaint rect needs to be recorded in the correct position
relative to the squashing GraphicsLayer. |
| 14 function repaintTest() | 15 window.expectedPaintInvalidationObjects = [ |
| 16 "LayoutBlockFlow (positioned) DIV id='chip'", |
| 17 ]; |
| 18 function paintInvalidationTest() |
| 15 { | 19 { |
| 16 document.getElementById('chip').style.left = "400px"; | 20 document.getElementById('chip').style.left = "400px"; |
| 17 } | 21 } |
| 18 | 22 |
| 19 runRepaintTest(); | 23 runPaintInvalidationTest(); |
| 20 </script> | 24 </script> |
| OLD | NEW |