blob: 1918bc146c06a982151836fc00fd030cb86ab4c4 [file] [log] [blame]
<!-- Based on fast/repaint/filter-invalidation-with-composited-container-change.html -->
<!DOCTYPE html>
<style>
.green {
background-color: green;
}
.box {
width: 200px;
height: 200px;
}
.drop-shadowed {
-webkit-filter: drop-shadow(100px 100px 10px red);
}
.blurry {
-webkit-filter: blur(10px);
transform: translateZ(0);
}
</style>
<!--
This test checks that we correctly invalidate filters along with a paint invalidation container change.
There should be no red below.
-->
<div class="green drop-shadowed box" id="box"></div>
<script src="resources/paint-invalidation-test.js"></script>
<script>
function paintInvalidationTest() {
var box = document.getElementById('box');
box.classList.toggle('drop-shadowed');
box.classList.toggle('blurry');
}
runPaintInvalidationTest();
</script>