| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <style type="text/css"> | 3 <style type="text/css"> |
| 4 body { | 4 body { |
| 5 overflow: hidden; /* hide scrollbars */ | 5 overflow: hidden; /* hide scrollbars */ |
| 6 } | 6 } |
| 7 | 7 |
| 8 .container { | 8 .container { |
| 9 border: 2px solid blue; | 9 border: 2px solid blue; |
| 10 width: 400px; | 10 width: 400px; |
| 11 } | 11 } |
| 12 #masked { | 12 #masked { |
| 13 width: 400px; | 13 width: 400px; |
| 14 height: 200px; | 14 height: 200px; |
| 15 background-color: black; | 15 background-color: black; |
| 16 -webkit-mask-image: url(../resources/alpha-blocks.png); | 16 -webkit-mask-image: url(../resources/alpha-blocks.png); |
| 17 -webkit-mask-position: 0px 0px; | 17 -webkit-mask-position: 0px 0px; |
| 18 -webkit-mask-size: 200px 200px; | 18 -webkit-mask-size: 200px 200px; |
| 19 -webkit-mask-repeat: no-repeat; | 19 -webkit-mask-repeat: no-repeat; |
| 20 -webkit-transform: translateZ(0); | 20 transform: translateZ(0); |
| 21 } | 21 } |
| 22 | 22 |
| 23 #layers { | 23 #layers { |
| 24 opacity: 0; /* hide in pixel test */ | 24 opacity: 0; /* hide in pixel test */ |
| 25 } | 25 } |
| 26 </style> | 26 </style> |
| 27 <script type="text/javascript" charset="utf-8"> | 27 <script type="text/javascript" charset="utf-8"> |
| 28 if (window.testRunner) | 28 if (window.testRunner) |
| 29 testRunner.dumpAsText(); | 29 testRunner.dumpAsText(); |
| 30 | 30 |
| 31 function dumpLayers() | 31 function dumpLayers() |
| 32 { | 32 { |
| 33 if (window.testRunner) | 33 if (window.testRunner) |
| 34 document.getElementById('layers').textContent = window.internals.lay
erTreeAsText(document); | 34 document.getElementById('layers').textContent = window.internals.lay
erTreeAsText(document); |
| 35 } | 35 } |
| 36 window.addEventListener('load', dumpLayers, false); | 36 window.addEventListener('load', dumpLayers, false); |
| 37 </script> | 37 </script> |
| 38 </head> | 38 </head> |
| 39 <body> | 39 <body> |
| 40 <div class="container"> | 40 <div class="container"> |
| 41 <div id="masked" onwebkitanimationstart="pauseAnimation()"></div> | 41 <div id="masked" onwebkitanimationstart="pauseAnimation()"></div> |
| 42 </div> | 42 </div> |
| 43 | 43 |
| 44 <pre id="layers">Layer tree goes here when testing</pre> | 44 <pre id="layers">Layer tree goes here when testing</pre> |
| 45 | 45 |
| 46 </body> | 46 </body> |
| 47 </html> | 47 </html> |
| OLD | NEW |