tor-browser

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

test_bug476308.html (1142B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=476308
      5 -->
      6 <head>
      7  <title>Test for Bug 345267</title>
      8  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      9  <script src="/tests/SimpleTest/EventUtils.js"></script>
     10  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
     11 </head>
     12 <body>
     13 
     14 <button style="-moz-appearance: none; width: 100px; height: 60px; background-color: red; border: 2px solid green; box-shadow: 30px 0px 3.5px black; position: absolute; top: 300px; left: 20px;"
     15        id="button1">1</button>
     16 
     17 <br />
     18 <div style="width: 100px; height: 100px; background-color: green; border: 3px dotted blue; box-shadow: -30px -20px 0px black; position: absolute; top: 500px; left: 70px;"
     19     id="div1">2</div>
     20 
     21 <script type="text/javascript">
     22  var elem = document.elementFromPoint(130, 310);
     23  isnot(elem, document.getElementById("button1"), "button1's box-shadow is receiving events when it shouldn't");
     24 
     25  elem = document.elementFromPoint(50, 500);
     26  isnot(elem, document.getElementById("div1"), "div1's box-shadow is receiving events when it shouldn't");
     27 </script>
     28 
     29 </body>
     30 </html>