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

Side by Side Diff: LayoutTests/svg/as-background-image/animated-svg-animation-control.html

Issue 206033005: Rewind the timeline for SVG-in-<img> when resetAnimation() is called (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>SVG-in-&lt;img&gt;: Animation resets when all references are removed.</ti tle>
3 <div style="width: 100px; height: 100px;"></div>
4 <script>
5 if (window.testRunner)
6 testRunner.waitUntilDone();
7 var div = document.querySelector('div');
8 var imgurl = "url(\"data:image/svg+xml," +
9 "<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'>" +
10 "<rect width='100' height='100' fill='blue'>" +
11 "<set attributeName='fill' to='green' dur='0.1s'/>" +
12 "</rect>" +
13 "</svg>\")";
kouhei (in TOK) 2014/03/20 15:27:29 Maybe we can have this as a svg file in LayoutTest
fs 2014/03/20 17:02:17 Done. (But to as-background-image/resources/ - I g
14 div.style.background = imgurl;
kouhei (in TOK) 2014/03/20 15:27:29 There are LayoutTests/svg/as-image/ testing svg in
fs 2014/03/20 17:02:17 The bug was reported against 'background-image' so
15 setTimeout(function() {
16 div.style.background = "";
17 setTimeout(function() {
18 div.style.background = imgurl;
19 if (window.testRunner)
20 testRunner.notifyDone();
21 }, 10);
22 }, 150);
23 </script>
24
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698