2 <html xmlns=
"http://www.w3.org/1999/xhtml">
4 https://bugzilla.mozilla.org/show_bug.cgi?id=433063
7 <title>Test for getBBox when the viewBox is invalid
</title>
8 <script type=
"application/javascript" src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
14 <div id=
"content" style=
"display: none"></div>
16 <svg id=
"svg" xmlns=
"http://www.w3.org/2000/svg"
17 style=
"width:200px; height:200px;" viewBox=
"0 0 200 0">
18 <rect width=
"120" height=
"120"/>
22 <script class=
"testbody" type=
"application/javascript">
23 SimpleTest.waitForExplicitFinish();
27 var bbox = $(
"svg").getBBox();
28 is(bbox.x,
0,
"Check bbox.x");
29 is(bbox.y,
0,
"Check bbox.y");
30 is(bbox.width,
120,
"Check bbox.width");
31 is(bbox.height,
120,
"Check bbox.height");
35 window.addEventListener(
"load", run, false);