Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/filters/effect-reference-repaint-lighting.html

Issue 2341923002: Harmonize FilterEffect::mapRect and mapPaintRect (Closed)
Patch Set: Rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..587dacb680bf3b4df0c209279a24d303e505beb4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/filters/effect-reference-repaint-lighting.html
@@ -0,0 +1,34 @@
+<!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-image: radial-gradient(transparent, black);
+ filter: url(#lighting);
+}
+.before {
+ background-image: none;
+}
+</style>
+<div class="before box"></div>
+<svg width="0" height="0">
+ <filter id="lighting" x="-0.5" y="-0.5" width="2" height="2">
+ <feDiffuseLighting surfaceScale="200">
+ <feDistantLight azimuth="135"/>
+ </feDiffuseLighting>
+ <feComposite operator="in" x="50" y="50" width="100" height="100" in2="SourceGraphic"/>
+ </filter>
+</svg>

Powered by Google App Engine
This is Rietveld 408576698