tor-browser

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

helper_bug1473108.html (1263B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=1473108
      5 -->
      6 <head>
      7  <meta charset="utf-8">
      8  <meta name="viewport" content="width=device-width; initial-scale=1.0">
      9  <title>Test for Bug 1473108</title>
     10  <script type="application/javascript" src="apz_test_native_event_utils.js"></script>
     11  <script type="application/javascript" src="apz_test_utils.js"></script>
     12  <script src="/tests/SimpleTest/paint_listener.js"></script>
     13  <style>
     14  .a {
     15    background: green;
     16    height: 64px;
     17    width: 32px;
     18    display: block;
     19  }
     20  span::before {
     21    content: "";
     22    background: red;
     23    height: 32px;
     24    width: 32px;
     25    display: block;
     26  }
     27  span:active::after {
     28    content: "";
     29  }
     30 </style>
     31 </head>
     32 
     33 <body>
     34  <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1473108">Mozilla Bug 1473108</a>
     35  <a class="a" id="event"><span id="target"></span></a>
     36 
     37  <script type="application/javascript">
     38 
     39  waitUntilApzStable().then(async () => {
     40    let target = document.getElementById("target");
     41    target.addEventListener("click", function(e) {
     42      is(e.target, target, `Clicked on at (${e.clientX}, ${e.clientY})`);
     43      subtestDone();
     44    });
     45    await synthesizeNativeTap(target, 5, 5);
     46  });
     47 
     48 </script>
     49 </body>
     50 </html>