| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 .comp { | 5 .comp { |
| 6 -webkit-transform: translateZ(0px); | 6 -webkit-transform: translateZ(0px); |
| 7 } | 7 } |
| 8 body { | 8 body { |
| 9 margin:0; | 9 margin:0; |
| 10 padding:0; | 10 padding:0; |
| 11 } | 11 } |
| 12 .shadow { | 12 .shadow { |
| 13 position:absolute; | 13 position:absolute; |
| 14 left:20px; right:20px; | 14 left:20px; right:20px; |
| 15 width:500px; | 15 width:500px; |
| 16 height:500px; | 16 height:500px; |
| 17 top:0px; bottom:20px; | 17 top:0px; bottom:20px; |
| 18 z-index:120; | 18 z-index:120; |
| 19 margin-top:20px; | 19 margin-top:20px; |
| 20 border: 1px solid transparent; | 20 border: 1px solid transparent; |
| 21 -webkit-box-shadow: 0 0 6px #090; | 21 -webkit-box-shadow: 0 0 6px #090; |
| 22 background-color: #090; | 22 background-color: #090; |
| 23 } | 23 } |
| 24 </style> | 24 </style> |
| 25 <script type="text/javascript"> | 25 <script type="text/javascript"> |
| 26 if (window.testRunner) { | 26 if (window.testRunner) { |
| 27 testRunner.dumpAsText(true); | 27 testRunner.dumpAsTextWithPixelResults(); |
| 28 } | 28 } |
| 29 </script> | 29 </script> |
| 30 </head> | 30 </head> |
| 31 | 31 |
| 32 <body> | 32 <body> |
| 33 <!-- If culled incorrectly, the top/left edges outside of the shadowed box end u
p being culled instead of painted/drawn properly. --> | 33 <!-- If culled incorrectly, the top/left edges outside of the shadowed box end u
p being culled instead of painted/drawn properly. --> |
| 34 <div class="comp shadow"></div> | 34 <div class="comp shadow"></div> |
| 35 </body> | 35 </body> |
| 36 </html> | 36 </html> |
| OLD | NEW |