Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / css / svg-ellipse-render-crash.html
blob37b9e9edd7ab6d5094564b78f286accc1364153c
1 <html>
2 <head>
3 <style type="text/css">
4 .cls1 {
5 stroke: black;
6 fill: rgb(0,255,0);
7 stroke-width: 1;
9 </style>
11 <script type="text/javascript">
12 function setup() {
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);
32 </script>
33 </head>
34 <body onload="setup()">
35 <p>Here is an html paragraph. And below is a svg drawing. This should render without crashing.</p>
36 <div id="drawing"/>
37 </body>
38 </html>