Index: LayoutTests/svg/as-background-image/animated-svg-animation-control.html |
diff --git a/LayoutTests/svg/as-background-image/animated-svg-animation-control.html b/LayoutTests/svg/as-background-image/animated-svg-animation-control.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..edf2fdd55290b90c5fc005e3c8ddfe1fab382651 |
--- /dev/null |
+++ b/LayoutTests/svg/as-background-image/animated-svg-animation-control.html |
@@ -0,0 +1,21 @@ |
+<!DOCTYPE html> |
+<title>SVG-in-<img>: Animation resets when all references are removed.</title> |
+<div style="width: 100px; height: 100px;"></div> |
+<script> |
+if (window.testRunner) |
+ testRunner.waitUntilDone(); |
+var div = document.querySelector('div'); |
+var imgurl = "url('../as-image/resources/animated-rect-color.svg')"; |
+div.style.background = imgurl; |
+setTimeout(function() { |
+ div.style.background = ""; |
+ setTimeout(function() { |
+ div.style.background = imgurl; |
+ setTimeout(function() { |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
+ }, 10); |
+ }, 0); |
+}, 100); |
+</script> |
+ |