| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <!-- | 3 <!-- |
| 4 This test verifies that software layers are promoted to composited layer
s when their filter | 4 This test verifies that software layers are promoted to composited layer
s when their filter |
| 5 outsets change to overlap a hardware layer. | 5 outsets change to overlap a hardware layer. |
| 6 | 6 |
| 7 If the test passes, the green drop-shadow of the black layer should appe
ar over the blue | 7 If the test passes, the green drop-shadow of the black layer should appe
ar over the blue |
| 8 composited layer. | 8 composited layer. |
| 9 --> | 9 --> |
| 10 <style> | 10 <style> |
| 11 #software-layer-to-promote { | 11 #software-layer-to-promote { |
| 12 background-color: black; | 12 background-color: black; |
| 13 position: absolute; | 13 position: absolute; |
| 14 top: 100px; | 14 top: 100px; |
| 15 left: 100px; | 15 left: 100px; |
| 16 width: 100px; | 16 width: 100px; |
| 17 height: 100px; | 17 height: 100px; |
| 18 } | 18 } |
| 19 .initial-drop-shadow { | 19 .initial-drop-shadow { |
| 20 -webkit-filter: drop-shadow(10px 10px 0px green); | 20 -webkit-filter: drop-shadow(10px 10px 0px green); |
| 21 } | 21 } |
| 22 .final-drop-shadow { | 22 .final-drop-shadow { |
| 23 -webkit-filter: drop-shadow(100px 100px 0px green); | 23 -webkit-filter: drop-shadow(100px 100px 0px green); |
| 24 } | 24 } |
| 25 #composited-layer-to-overlap { | 25 #composited-layer-to-overlap { |
| 26 background-color: blue; | 26 background-color: blue; |
| 27 -webkit-transform: translateZ(0); | 27 transform: translateZ(0); |
| 28 position: absolute; | 28 position: absolute; |
| 29 top: 250px; | 29 top: 250px; |
| 30 left: 250px; | 30 left: 250px; |
| 31 width: 100px; | 31 width: 100px; |
| 32 height: 100px; | 32 height: 100px; |
| 33 } | 33 } |
| 34 </style> | 34 </style> |
| 35 <script> | 35 <script> |
| 36 if (window.testRunner) | 36 if (window.testRunner) |
| 37 testRunner.waitUntilDone(); | 37 testRunner.waitUntilDone(); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 62 } | 62 } |
| 63 } | 63 } |
| 64 </script> | 64 </script> |
| 65 </head> | 65 </head> |
| 66 <body onload="runTest()"> | 66 <body onload="runTest()"> |
| 67 <div id="composited-layer-to-overlap"></div> | 67 <div id="composited-layer-to-overlap"></div> |
| 68 <div id="software-layer-to-promote" class="initial-drop-shadow"></div> | 68 <div id="software-layer-to-promote" class="initial-drop-shadow"></div> |
| 69 <pre id="console"></pre> | 69 <pre id="console"></pre> |
| 70 </body> | 70 </body> |
| 71 </html> | 71 </html> |
| OLD | NEW |