layout/base/tests/test_bug718809.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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" />
    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();
    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>

mercurial