1 <html xmlns=
"http://www.w3.org/1999/xhtml">
4 <title>Scalable Search Box
</title>
10 var expectedMatrix
= {
20 if (window
.testRunner
)
21 testRunner
.dumpAsText();
23 var rect
= document
.getElementById('rect');
25 testMatrix
= rect
.getScreenCTM();
29 log('.getScreenCTM() seems to be unimplemented');
32 // check equality of matrices
33 if (areMatricesEqual(testMatrix
, expectedMatrix
)) {
38 log('Expected matrix ' + printMatrix(expectedMatrix
));
39 log('Got matrix ' + printMatrix(testMatrix
));
43 function areMatricesEqual (m1
, m2
) {
54 function printMatrix (m
) {
55 return '[' + [m
.a
, m
.b
, m
.c
, m
.d
, m
.e
, m
.f
].join(', ') + ']';
59 var output
= document
.getElementById('console')
60 var text
= document
.createTextNode(msg
);
61 var br
= document
.createElementNS('http://www.w3.org/1999/xhtml', 'br');
62 output
.appendChild(text
);
63 output
.appendChild(br
);
70 <body onload=
"runTest()">
71 <div style=
"height: 200px;">
72 <table width=
"100%" height=
"100%" padding=
"100" style=
"text-align:center">
74 <svg id=
"svgRoot" xmlns=
"http://www.w3.org/2000/svg" width=
"100" height=
"100">
75 <rect id=
"rect" width=
"100%" height=
"100%" />
80 <div id=
"console" style=
"position: absolute; left: 30px; top: 330px; color: red" />
81 This tests the behaviour of
<code>SVGLocatable::getScreenCTM()
</code> in mixed content
<br />