layout/base/tests/test_bug725426.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/base/tests/test_bug725426.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +<!doctype html>
     1.5 +<!--
     1.6 +https://bugzilla.mozilla.org/show_bug.cgi?id=725426
     1.7 +-->
     1.8 +<title>Test for bug 725426</title>
     1.9 +<script src=/tests/SimpleTest/SimpleTest.js></script>
    1.10 +<link rel=stylesheet href=/tests/SimpleTest/test.css>
    1.11 +<body style=margin:0>
    1.12 +<div style="-moz-transform: perspective(200px)">
    1.13 +<div style="-moz-transform: translatez(-100px);
    1.14 +width:100px;height:100px;background:blue">
    1.15 +</div></div>
    1.16 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=725426">
    1.17 +Mozilla Bug 725426</a>
    1.18 +<pre id=test>
    1.19 +<script class=testbody>
    1.20 +var rect = document.querySelector("div>div").getBoundingClientRect();
    1.21 +is(rect.top, 0, "Incorrect bounding rect top");
    1.22 +is(rect.right, 100, "Incorrect bounding rect top");
    1.23 +is(rect.bottom, 100, "Incorrect bounding rect top");
    1.24 +is(rect.left, 0, "Incorrect bounding rect top");
    1.25 +</script>
    1.26 +</pre>

mercurial