blob: 905d3d34a745960ef3e00af0c0231f772fd6345e [file] [log] [blame]
<!-- Based on fast/repaint/filter-repaint-accelerated-child-with-filter-child.html -->
<!DOCTYPE html>
<style>
div {
width: 200px;
height: 200px;
}
.blur {
-webkit-filter: blur(10px);
}
.drop-shadow {
-webkit-filter: drop-shadow(16px 16px 10px black);
}
.accelerated {
transform: translateZ(0);
}
#resize {
background-color: green;
}
</style>
<div class="blur">
<div class="accelerated">
<div class="drop-shadow" id="resize"></div>
</div>
</div>
<script src="resources/paint-invalidation-test.js"></script>
<script>
function paintInvalidationTest() {
var resizeElement = document.getElementById("resize");
resizeElement.style.width = "100px";
}
window.onload = runPaintInvalidationTest;
</script>