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

Unified Diff: third_party/WebKit/LayoutTests/svg/animations/animateMotion_changingPath.html

Issue 2227463002: SVG: Use path attribute for animateMotion (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: implicitWait Created 4 years, 4 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 | third_party/WebKit/LayoutTests/svg/animations/animateMotion_changingPath-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/svg/animations/animateMotion_changingPath.html
diff --git a/third_party/WebKit/LayoutTests/svg/animations/animateMotion_changingPath.html b/third_party/WebKit/LayoutTests/svg/animations/animateMotion_changingPath.html
new file mode 100644
index 0000000000000000000000000000000000000000..33d23c55be05960c34ae4552eebf11fc2651f070
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/animations/animateMotion_changingPath.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+<style>
+#track {
+ d: path('M20,100 H180');
+ stroke: blue;
+}
+</style>
+<svg id="svgRoot" width="200" height="200">
+
+ <path id="track" d="M20,20 H180"/>
+
+ <circle r="10" cx="0" cy="0" fill="green">
+ <animateMotion dur="5s" fill="freeze">
+ <mpath xlink:href="#track"/>
+ </animateMotion>
+ </circle>
+</svg>
+<script>
+'use strict';
+runAfterLayoutAndPaint(function() {
+ document.getElementById('track').setAttribute('d', 'M100,20 V180');
+ document.getElementById('svgRoot').setCurrentTime(5);
+}, true);
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/svg/animations/animateMotion_changingPath-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698