4 <meta charset=
"utf-8" />
6 <!-- To run this test: Open this page, close the window, and (hopefully) don't crash.-->
11 if (window
.GCController
)
12 GCController
.collect();
14 for (var i
= 0; i
< 10000; ++i
) // Allocate a sufficient number of objects to force a GC.
20 var iframe
= document
.getElementById("iframe");
21 var thesvgdiv
= document
.getElementById('thediv');
22 var theclone
= thesvgdiv
.cloneNode(true);
23 iframe
.contentDocument
.body
.appendChild(theclone
);
24 setTimeout(function() {
25 iframe
.style
.display
= 'none';
26 iframe
.parentNode
.removeChild(iframe
);
37 <svg id=
"thesvg" width=
"12cm" height=
"3.6cm" viewBox=
"0 0 1000 300">
39 <lineargradient id=
"orange_red" x2=
"0" y2=
"1" >
40 <stop stop-color=
"yellow" />
41 <stop offset=
"1" stop-color=
"red" />
44 <path id=
"MyPath" d=
"M 100 200 C 200 100 300 0 400 100 C 500 200 600 300 700 200 C 800 100 900 100 900 100" fill=
"none" stroke=
"red" />
45 <text font-family=
"Verdana" font-size=
"72.5" fill=
"url(#orange_red)" >
46 <textpath xlink:
href=
"#MyPath"> Look mom, SVG in HTML!
</textpath>
48 (If you had an HTML5 compliant browser, the previous text would be colored and on a path.)
52 <iframe id=
"iframe" width=
"50%" height=
"50%"></iframe>