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

Unified Diff: LayoutTests/svg/animations/additive-from-to-fill-animation.html

Issue 183973023: Always reset the animated property for CSS-type SVG animation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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/animations/additive-from-to-fill-animation-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/animations/additive-from-to-fill-animation.html
diff --git a/LayoutTests/svg/animations/additive-from-to-fill-animation.html b/LayoutTests/svg/animations/additive-from-to-fill-animation.html
new file mode 100644
index 0000000000000000000000000000000000000000..9e1d0671bb9abea4548691e65696c4ec0392bdd4
--- /dev/null
+++ b/LayoutTests/svg/animations/additive-from-to-fill-animation.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100">
+ <rect width="100" height="100" color="green" fill="black">
+ <animate attributeName="fill" from="currentColor" to="currentColor" begin="0s" dur="0.01s" fill="freeze" additive="sum" onend="checkResult()"/>
+ </rect>
+</svg>
+<script>
+var jsTestIsAsync = true;
+
+function checkResult() {
+ shouldBe("getComputedStyle(document.querySelector('rect')).fill", "'rgb(0, 128, 0)'");
+ finishJSTest();
+}
+</script>
« no previous file with comments | « no previous file | LayoutTests/svg/animations/additive-from-to-fill-animation-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698