3 <style type=
"text/css">
11 <script type=
"text/javascript">
13 if (window
.testRunner
)
14 testRunner
.dumpAsText();
15 var svg
= document
.createElementNS("http://www.w3.org/2000/svg", "svg");
16 svg
.width
.baseVal
.valueAsString
= "400px";
17 svg
.height
.baseVal
.valueAsString
= "400px";
18 svg
.viewBox
.baseVal
.x
= 0;
19 svg
.viewBox
.baseVal
.y
= 0;
20 svg
.viewBox
.baseVal
.width
= 90;
21 svg
.viewBox
.baseVal
.height
= 90;
22 var ellipse
= document
.createElementNS("http://www.w3.org/2000/svg", "ellipse");
23 ellipse
.cx
.baseVal
.value
= 50;
24 ellipse
.cy
.baseVal
.value
= 50;
25 ellipse
.rx
.baseVal
.value
= 30;
26 ellipse
.ry
.baseVal
.value
= 10;
27 ellipse
.className
.baseVal
= "cls1";
28 var drawing
= document
.getElementById("drawing");
29 svg
.appendChild(ellipse
);
30 drawing
.appendChild(svg
);
34 <body onload=
"setup()">
35 <p>Here is an html paragraph. And below is a svg drawing. This should render without crashing.
</p>