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

Side by Side Diff: LayoutTests/svg/animations/onbegin.svg

Issue 106053007: Add beginEvent/endEvent listeners via the onbegin/onend attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add onrepeat too Created 7 years 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 | LayoutTests/svg/animations/onbegin-expected.svg » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/ SVG/1.1/DTD/svg11-tiny.dtd"> 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/ SVG/1.1/DTD/svg11-tiny.dtd">
3 <svg onload="loaded()" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://ww w.w3.org/1999/xlink"> 3 <svg onload="loaded()" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://ww w.w3.org/1999/xlink">
4 <rect x="0" y="0" width="0" height="100" fill="green"> 4 <rect x="0" y="0" width="0" height="100" fill="green">
5 <animate id="anim" attributeName="visibility" to="visible" begin="0s" end="2 s" fill="freeze"/> 5 <animate id="anim" attributeName="visibility" to="visible" begin="0s" end="2 s" fill="freeze" onbegin="document.getElementById('anim2').beginElement()"/>
6 <set attributeName="width" to="100" begin="anim.beginEvent" /> 6 <set id="anim2" attributeName="width" to="100" begin="indefinite" />
7 </rect> 7 </rect>
8 <script> 8 <script>
9 if (window.testRunner) 9 if (window.testRunner)
10 testRunner.waitUntilDone(); 10 testRunner.waitUntilDone();
11 11
12 function loaded() { 12 function loaded() {
13 document.documentElement.setCurrentTime(2); 13 document.documentElement.setCurrentTime(2);
14 14
15 if (window.testRunner) 15 if (window.testRunner)
16 setTimeout(function(){testRunner.notifyDone();}, 100); 16 setTimeout(function(){testRunner.notifyDone();}, 100);
17 } 17 }
18 </script> 18 </script>
19 </svg> 19 </svg>
20 20
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/svg/animations/onbegin-expected.svg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698