Chromium Code Reviews| OLD | NEW |
|---|---|
| (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> | |
| OLD | NEW |