Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / getBBox-path.svg
blobebd851245f051ca336816ed66c62b48d2a3fcead
1 <?xml version="1.0" encoding="UTF-8"?>
2 <svg xmlns="http://www.w3.org/2000/svg" onload="init()">
3 <script type="text/javascript">
4 <![CDATA[
5 function init()
7 if (window.testRunner)
8 testRunner.dumpAsText();
9 var txt = document.getElementById("text");
10 size = document.getElementById("shape").getBBox();
11 var passState = "FAIL";
12 if(size.width == 100 && size.height == 37.5)
13 passState = "PASS";
14 var textNode = document.createTextNode(size.width + " " + size.height + " " + passState);
15 txt.appendChild(textNode);
17 ]]>
18 </script>
19 <path id="shape" d="M100,100 C125,150 175,150 200,100 z" />
20 <text id="text" x="50" y="50" />
21 </svg>