| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> | 2 <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 .imageWrapper | 5 .imageWrapper |
| 6 { | 6 { |
| 7 position: relative; | 7 position: relative; |
| 8 display: inline-block; | 8 display: inline-block; |
| 9 width: 700px; | 9 width: 700px; |
| 10 } | 10 } |
| 11 | 11 |
| 12 #shiftMe | 12 #shiftMe |
| 13 { | 13 { |
| 14 position: absolute; | 14 position: absolute; |
| 15 top: 0px; | 15 top: 0px; |
| 16 left: 0px; | 16 left: 0px; |
| 17 width: 1500px; | 17 width: 1500px; |
| 18 } | 18 } |
| 19 </style> | 19 </style> |
| 20 <script src="resources/text-based-repaint.js"></script> | 20 <script src="resources/text-based-repaint.js"></script> |
| 21 <script> | 21 <script> |
| 22 function repaintTest() | 22 function repaintTest() |
| 23 { | 23 { |
| 24 shiftMe.style.left = "-250px"; | 24 shiftMe.style.left = "-250px"; |
| 25 } | 25 } |
| 26 </script> | 26 </script> |
| 27 </head> | 27 </head> |
| 28 <body onload="runRepaintTest();"> | 28 <body onload="runRepaintAndPixelTest();"> |
| 29 <div>This test checks that shifting an abspos container will properly repain
t its descendants.</div> | 29 <div>This test checks that shifting an abspos container will properly repain
t its descendants.</div> |
| 30 <div>The images below should be correctly repainted.</div> | 30 <div>The images below should be correctly repainted.</div> |
| 31 <div id="shiftMe"> | 31 <div id="shiftMe"> |
| 32 <div class="imageWrapper"> | 32 <div class="imageWrapper"> |
| 33 <img src="resources/apple.jpg"> | 33 <img src="resources/apple.jpg"> |
| 34 </div> | 34 </div> |
| 35 <div class="imageWrapper"> | 35 <div class="imageWrapper"> |
| 36 <img src="resources/apple.jpg"> | 36 <img src="resources/apple.jpg"> |
| 37 </div> | 37 </div> |
| 38 </div> | 38 </div> |
| 39 </body> | 39 </body> |
| 40 </html> | 40 </html> |
| OLD | NEW |