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">
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)
16 var textNode = document.createTextNode(size.width +
" " + size.height +
" " + passState);
17 txt.appendChild(textNode);
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>
25 <text id=
"text" x=
"50" y=
"50" />