|
1 <!DOCTYPE HTML> |
|
2 <html> |
|
3 <!-- |
|
4 https://bugzilla.mozilla.org/show_bug.cgi?id=718809 |
|
5 --> |
|
6 <head> |
|
7 <title>Test for Bug 718809</title> |
|
8 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
|
9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> |
|
10 |
|
11 </head> |
|
12 <body style=margin:0> |
|
13 <div style="background:blue;height:50px;width:100px; -moz-transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 10, 1); -moz-transform-origin:0 0"></div> |
|
14 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=718809">Mozilla Bug 718809</a> |
|
15 </div> |
|
16 <pre id="test"> |
|
17 <script class="testbody" type="text/javascript"> |
|
18 var rect = document.querySelector("div").getBoundingClientRect(); |
|
19 |
|
20 is(rect.top, 0, "Incorrect bounding rect"); |
|
21 is(rect.left, 0, "Incorrect bounding rect"); |
|
22 is(rect.right, 100, "Incorrect bounding rect"); |
|
23 is(rect.bottom, 50, "Incorrect bounding rect"); |
|
24 </script> |
|
25 </pre> |
|
26 </body> |
|
27 </html> |
|
28 |