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

Unified Diff: LayoutTests/svg/as-background-image/animated-svg-animation-control.html

Issue 206033005: Rewind the timeline for SVG-in-<img> when resetAnimation() is called (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reduce timeouts some more. Created 6 years, 9 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
« no previous file with comments | « no previous file | LayoutTests/svg/as-background-image/animated-svg-animation-control-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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-&lt;img&gt;: 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>
+
« no previous file with comments | « no previous file | LayoutTests/svg/as-background-image/animated-svg-animation-control-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698