Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | <!doctype html> |
michael@0 | 2 | <!-- |
michael@0 | 3 | https://bugzilla.mozilla.org/show_bug.cgi?id=725426 |
michael@0 | 4 | --> |
michael@0 | 5 | <title>Test for bug 725426</title> |
michael@0 | 6 | <script src=/tests/SimpleTest/SimpleTest.js></script> |
michael@0 | 7 | <link rel=stylesheet href=/tests/SimpleTest/test.css> |
michael@0 | 8 | <body style=margin:0> |
michael@0 | 9 | <div style="-moz-transform: perspective(200px)"> |
michael@0 | 10 | <div style="-moz-transform: translatez(-100px); |
michael@0 | 11 | width:100px;height:100px;background:blue"> |
michael@0 | 12 | </div></div> |
michael@0 | 13 | <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=725426"> |
michael@0 | 14 | Mozilla Bug 725426</a> |
michael@0 | 15 | <pre id=test> |
michael@0 | 16 | <script class=testbody> |
michael@0 | 17 | var rect = document.querySelector("div>div").getBoundingClientRect(); |
michael@0 | 18 | is(rect.top, 0, "Incorrect bounding rect top"); |
michael@0 | 19 | is(rect.right, 100, "Incorrect bounding rect top"); |
michael@0 | 20 | is(rect.bottom, 100, "Incorrect bounding rect top"); |
michael@0 | 21 | is(rect.left, 0, "Incorrect bounding rect top"); |
michael@0 | 22 | </script> |
michael@0 | 23 | </pre> |