tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_bug1246622.html (842B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4 <title>Test for Bug 1246622</title>
      5 <script src="/tests/SimpleTest/SimpleTest.js"></script>
      6 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
      7 <style>
      8  #grandparent {
      9    position: absolute;
     10    height: 100px;
     11    width: 100px;
     12    left: 400px;
     13    transform-style: preserve-3d;
     14  }
     15 
     16  #parent {
     17    transform: translateX(0px);
     18  }
     19 
     20  #child {
     21    width: 100px;
     22    height: 100px;
     23    background-color: green;
     24    transform-style: preserve-3d;
     25  }
     26  </style>
     27 </head>
     28 <body>
     29 <div id="grandparent">
     30  <div id="parent">
     31    <div id="child"></div>
     32  </div>
     33 </div>
     34 
     35 <pre id="test">
     36 <script type="application/javascript">
     37 
     38 /** Test for Bug 1246622 */
     39 
     40 is(document.elementFromPoint(450,50), document.getElementById("child"), "Able to hit transformed object");
     41 
     42 </script>
     43 </pre>
     44 </body>
     45 </html>