blob: f852d18718dd469b13af62d9e36c1527dbdbaa81 [file] [log] [blame]
<!DOCTYPE html>
This tests verifies that shadow is repainted using the full source image of the element instead of just the dirty area.
There should be 3 green boxes of same size with blue shadow on the lower right corner. Check that the shadow is not interrupted.
.box {
margin: 10px;
height: 50px;
width: 50px;
background-color: green;
.before {
background-color: red;
.shadow {
margin: 50px;
filter: drop-shadow(10px 10px 10px blue);
<script src="../../resources/run-after-layout-and-paint.js"></script>
function repaintTest()
runAfterLayoutAndPaint(function() {
}, true);
<body onload="repaintTest()">
<div class="shadow">
<div class="box"></div>
<div class="box before"></div>
<div class="box"></div>