Index: third_party/WebKit/LayoutTests/paint/invalidation/filters/effect-reference-repaint-lighting.html |
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/filters/effect-reference-repaint-lighting.html b/third_party/WebKit/LayoutTests/paint/invalidation/filters/effect-reference-repaint-lighting.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4c6c537c95350dc543744aada5b3364e50fd77a0 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/filters/effect-reference-repaint-lighting.html |
@@ -0,0 +1,36 @@ |
+<!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: rgba(0, 128, 0, 0.01); |
+ filter: url(#lighting); |
Stephen White
2016/09/20 19:46:38
I think we'll need to figure out how to get someth
fs
2016/09/20 21:50:25
I don't think that's the major problem - that woul
|
+} |
+.before { |
+ background-color: red; |
+} |
+</style> |
+<div class="before box"></div> |
+<svg width="0" height="0"> |
+ <filter id="lighting" x="-0.5" y="-0.5" width="2" height="2"> |
+ <feOffset dx="1" dy="1"/> |
+ <feComposite in="SourceGraphic"/> |
+ <feDiffuseLighting surfaceScale="200"> |
+ <feDistantLight azimuth="-45"/> |
+ </feDiffuseLighting> |
+ <feColorMatrix values="0 0 0 0 0, 0.33 0.33 0.33 0 0, -0.25 0 0 0.25 0, 0 0 0 1 0"/> |
+ </filter> |
+</svg> |