| Index: third_party/WebKit/LayoutTests/paint/invalidation/filters/effect-reference-repaint-displacement.html
|
| diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/filters/effect-reference-repaint-displacement.html b/third_party/WebKit/LayoutTests/paint/invalidation/filters/effect-reference-repaint-displacement.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2df49a2d211c622f2be4a1e984574dedebbdbeab
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/paint/invalidation/filters/effect-reference-repaint-displacement.html
|
| @@ -0,0 +1,33 @@
|
| +<!DOCTYPE html>
|
| +<script src="../resources/text-based-repaint.js"></script>
|
| +<script>
|
| +if (window.testRunner)
|
| + testRunner.dumpAsText();
|
| +
|
| +function repaintTest() {
|
| + var things = document.getElementsByClassName("before");
|
| + while (things.length)
|
| + things[0].classList.remove("before");
|
| +}
|
| +onload = runRepaintAndPixelTest;
|
| +</script>
|
| +<style>
|
| +.box {
|
| + width: 200px;
|
| + height: 200px;
|
| + margin: 20px;
|
| + background-color: green;
|
| + filter: url(#displacement);
|
| +}
|
| +.before {
|
| + background-color: red;
|
| +}
|
| +</style>
|
| +<div class="before box"></div>
|
| +<svg width="0" height="0">
|
| + <filter id="displacement" x="-0.5" y="-0.5" width="2" height="2"
|
| + color-interpolation-filters="sRGB">
|
| + <feFlood/>
|
| + <feDisplacementMap in="SourceGraphic" scale="40"/>
|
| + </filter>
|
| +</svg>
|
|
|