Index: LayoutTests/svg/filters/feSpotLight-primitiveUnits-objectBoundingBox-animated.html |
diff --git a/LayoutTests/svg/filters/feSpotLight-primitiveUnits-objectBoundingBox-animated.html b/LayoutTests/svg/filters/feSpotLight-primitiveUnits-objectBoundingBox-animated.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..167933275b1e82614173738ab683adf7d8d426f1 |
--- /dev/null |
+++ b/LayoutTests/svg/filters/feSpotLight-primitiveUnits-objectBoundingBox-animated.html |
@@ -0,0 +1,25 @@ |
+<!DOCTYPE html> |
+<script src="../../resources/run-after-display.js"></script> |
+<script> |
+if (window.testRunner) |
+ testRunner.waitUntilDone(); |
+ |
+window.onload = function() { |
+ // Wait for a frame, then trigger animation. |
+ runAfterDisplay(function() { |
+ document.querySelector('set').beginElement(); |
+ if (window.testRunner) |
+ runAfterDisplay(function() { testRunner.notifyDone(); }); |
+ }); |
+}; |
+</script> |
+<svg> |
+ <filter id="f" primitiveUnits="objectBoundingBox" x="0" y="0" width="1" height="1"> |
+ <feDiffuseLighting lighting-color="green"> |
+ <feSpotLight x="0.5" y="0.5" z="-0.5" pointsAtX="0.5" pointsAtY="0.5" pointsAtZ="0"> |
+ <set attributeName="z" to="10" begin="indefinite"/> |
+ </feSpotLight> |
+ </feDiffuseLighting> |
+ </filter> |
+ <rect width="100" height="100" fill="red" filter="url(#f)"/> |
+</svg> |