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

Side by Side 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: runAfterLayoutAndPaint 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/run-after-layout-and-paint.js"></script>
3 <style>
4 #track {
5 d: path('M20,100 H180');
6 stroke: blue;
7 }
8 </style>
9 <svg id="svgRoot" width="200" height="200">
10
11 <path id="track" d="M20,20 H180"/>
12
13 <circle r="10" cx="0" cy="0" fill="green">
14 <animateMotion dur="5s" fill="freeze">
15 <mpath xlink:href="#track"/>
16 </animateMotion>
17 </circle>
18 </svg>
19 <script>
20 'use strict';
21 if (window.testRunner)
22 testRunner.waitUntilDone();
fs 2016/08/10 15:32:16 Nit: Not needed (done by the 'true' second argumen
Eric Willigers 2016/08/10 23:58:24 Done.
23
24 runAfterLayoutAndPaint(function() {
25 document.getElementById('track').setAttribute('d', 'M100,20 V180');
26 document.getElementById('svgRoot').setCurrentTime(5);
27 }, true);
28 </script>
OLDNEW
« 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