blob: e2e3169b074790cb26b013baac774b83b1d67f7e [file] [log] [blame]
<!doctype html>
This test verifies that a software layer will be promoted to a composited layer
if its drop shadow intersects a composited layer.
<!-- If the test passes, the light green drop shadow should appear over the the black div where they intersect. -->
#software {
background-color: green;
-webkit-filter: drop-shadow(25px 25px 0 lightgreen);
position: absolute;
top: 0;
left: 0;
width: 100px;
height: 100px;
#composited {
background-color: black;
position: absolute;
top: 105px;
left: 105px;
width: 100px;
height: 100px;
-webkit-transform: translate3d(0, 0, 0);
<div id="composited"></div>
<div id="software"></div>
<pre id="console"></pre>
if (window.testRunner) {