| OLD | NEW |
| 1 <!DOCTYPE> | 1 <!DOCTYPE> |
| 2 | 2 |
| 3 <html> | 3 <html> |
| 4 <head> | 4 <head> |
| 5 <style> | 5 <style> |
| 6 body { | 6 body { |
| 7 margin: 0; | 7 margin: 0; |
| 8 } | 8 } |
| 9 | 9 |
| 10 .box { | 10 .box { |
| 11 height: 200px; | 11 height: 200px; |
| 12 width: 200px; | 12 width: 200px; |
| 13 background-color: red; | 13 background-color: red; |
| 14 -webkit-transform: translateZ(1px); | 14 -webkit-transform: translateZ(1px); |
| 15 } | 15 } |
| 16 | 16 |
| 17 .indicator { | 17 .indicator { |
| 18 position: absolute; | 18 position: absolute; |
| 19 top: 200px; | 19 top: 200px; |
| 20 background-color: green; | 20 background-color: green; |
| 21 } | 21 } |
| 22 | 22 |
| 23 .reflected { | 23 .reflected { |
| 24 -webkit-box-reflect: below 0; | 24 -webkit-box-reflect: below 0; |
| 25 } | 25 } |
| 26 </style> | 26 </style> |
| 27 <script> | 27 <script> |
| 28 | 28 |
| 29 if (window.testRunner) { | 29 if (window.testRunner) { |
| 30 testRunner.dumpAsText(true); | 30 testRunner.dumpAsTextWithPixelResults(); |
| 31 testRunner.waitUntilDone(); | 31 testRunner.waitUntilDone(); |
| 32 } | 32 } |
| 33 | 33 |
| 34 function doTest() | 34 function doTest() |
| 35 { | 35 { |
| 36 window.setTimeout(function() { | 36 window.setTimeout(function() { |
| 37 document.getElementById('test').style.backgroundColor = 'transparent'; | 37 document.getElementById('test').style.backgroundColor = 'transparent'; |
| 38 if (window.testRunner) | 38 if (window.testRunner) |
| 39 testRunner.notifyDone(); | 39 testRunner.notifyDone(); |
| 40 }, 0); | 40 }, 0); |
| 41 } | 41 } |
| 42 window.addEventListener('load', doTest, false); | 42 window.addEventListener('load', doTest, false); |
| 43 </script> | 43 </script> |
| 44 </head> | 44 </head> |
| 45 <body> | 45 <body> |
| 46 | 46 |
| 47 <div class="indicator box"></div> | 47 <div class="indicator box"></div> |
| 48 <!-- You should see no red box below --> | 48 <!-- You should see no red box below --> |
| 49 <div id="test" class="reflected box"></div> | 49 <div id="test" class="reflected box"></div> |
| 50 | 50 |
| 51 </body> | 51 </body> |
| 52 </html> | 52 </html> |
| OLD | NEW |