| <!DOCTYPE html> |
| <html> |
| <head> |
| <style> |
| #shiftMe { |
| position: relative; |
| left: -100px; |
| } |
| |
| .container { |
| overflow: hidden; |
| } |
| |
| .imgContainer { |
| position: relative; |
| float: left; |
| } |
| </style> |
| </head> |
| <body> |
| <div class="container"> |
| <div id="shiftMe"> |
| <div class="imgContainer"> |
| <img src="../resources/apple.jpg"> |
| </div> |
| </div> |
| </div> |
| <script src="../resources/text-based-repaint.js" type="text/javascript"></script> |
| <script> |
| function repaintTest() |
| { |
| document.getElementById("shiftMe").style.left = "-20px"; |
| } |
| |
| window.addEventListener("load", runRepaintAndPixelTest, false); |
| </script> |
| </body> |
| </html> |