Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / getBBox-perpendicular-path.svg
blob8c5d5e8d08b729f2538e7a5989c07c4559044ddc
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- Test the bounding box calculated for two perpendicular lines of length 100px -->
3 <!-- If the bounding box is 100x100, we consider this test passing. -->
4 <svg xmlns="http://www.w3.org/2000/svg" onload="init()">
5 <script type="text/javascript">
6 <![CDATA[
7 function init()
9 if (window.testRunner)
10 testRunner.dumpAsText();
11 var txt = document.getElementById("text");
12 size = document.getElementById("shape").getBBox();
13 var passState = "FAIL";
14 if(size.width == 100 && size.height == 100)
15 passState = "PASS";
16 var textNode = document.createTextNode(size.width + " " + size.height + " " + passState);
17 txt.appendChild(textNode);
19 ]]>
20 </script>
21 <g id="shape">
22 <path stroke="#666666" stroke-width="2.0" stroke-linejoin="round" stroke-linecap="butt" d="M5 5L5 105" fill-rule="nonzero"></path>
23 <path stroke="#666666" stroke-width="2.0" stroke-linejoin="round" stroke-linecap="butt" d="M5 5L105 5" fill-rule="nonzero"></path>
24 </g>
25 <text id="text" x="50" y="50" />
26 </svg>