| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../resources/run-after-display.js"></script> |
| 3 <style> | 4 <style> |
| 4 #clipper { | 5 #clipper { |
| 5 width: 550px; | 6 width: 550px; |
| 6 height: 550px; | 7 height: 550px; |
| 7 overflow:hidden; | 8 overflow:hidden; |
| 8 } | 9 } |
| 9 | 10 |
| 10 #trigger { | 11 #trigger { |
| 11 /* Only overlap with the contents element, not the stretch element */ | 12 /* Only overlap with the contents element, not the stretch element */ |
| 12 -webkit-transform:translateZ(0); | 13 -webkit-transform:translateZ(0); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 40 position: absolute; | 41 position: absolute; |
| 41 background-color: blue; | 42 background-color: blue; |
| 42 top: 200px; | 43 top: 200px; |
| 43 left: -200px; | 44 left: -200px; |
| 44 width: 50px; | 45 width: 50px; |
| 45 height: 50px; | 46 height: 50px; |
| 46 } | 47 } |
| 47 | 48 |
| 48 </style> | 49 </style> |
| 49 <script> | 50 <script> |
| 50 if (window.testRunner) | 51 if (window.testRunner) { |
| 52 testRunner.waitUntilDone(); |
| 51 testRunner.dumpAsTextWithPixelResults(); | 53 testRunner.dumpAsTextWithPixelResults(); |
| 54 } |
| 52 | 55 |
| 53 function doTest() | 56 function doTest() |
| 54 { | 57 { |
| 55 if (window.testRunner) | 58 runAfterDisplay(function() { |
| 56 testRunner.display(); | 59 document.getElementById("stretch").style.left = "-100px"; |
| 57 | 60 if (window.testRunner) |
| 58 document.getElementById("stretch").style.left = "-100px"; | 61 testRunner.notifyDone(); |
| 62 }); |
| 59 } | 63 } |
| 60 | 64 |
| 61 window.addEventListener('load', doTest, false); | 65 window.addEventListener('load', doTest, false); |
| 62 </script> | 66 </script> |
| 63 </head> | 67 </head> |
| 64 <body> | 68 <body> |
| 65 <div id="trigger"></div> | 69 <div id="trigger"></div> |
| 66 <div id="clipper"> | 70 <div id="clipper"> |
| 67 <div id="container"> | 71 <div id="container"> |
| 68 <img id="contents"> | 72 <img id="contents"> |
| 69 <div id="stretch"></div> | 73 <div id="stretch"></div> |
| 70 <div id="negative"></div> | 74 <div id="negative"></div> |
| 71 </div> | 75 </div> |
| 72 </div> | 76 </div> |
| 73 </body> | 77 </body> |
| OLD | NEW |