Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/paint/invalidation/filters/effect-reference-repaint-composite-1.html |
| diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/filters/effect-reference-repaint-composite-1.html b/third_party/WebKit/LayoutTests/paint/invalidation/filters/effect-reference-repaint-composite-1.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..14a3d7bbc2ff1fc2bd09fba6d314e117447b23e7 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/paint/invalidation/filters/effect-reference-repaint-composite-1.html |
| @@ -0,0 +1,32 @@ |
| +<!DOCTYPE html> |
|
Stephen White
2016/09/20 19:46:38
Thanks for adding these. Shouldn't they also have
fs
2016/09/20 21:50:25
(See below, should be there now.)
|
| +<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(#composite); |
| +} |
| +.before { |
| + background-color: red; |
| +} |
| +</style> |
| +<div class="before box"></div> |
| +<svg width="0" height="0"> |
| + <filter id="composite" x="-0.5" y="-0.5" width="2" height="2"> |
| + <feFlood x="100" y="100" width="200" height="200" flood-color="red"/> |
| + <feComposite operator="in" in="SourceGraphic"/> |
| + </filter> |
| +</svg> |