tor-browser

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

href-click-001.tentative.html (1152B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3 <head>
      4 <meta charset="utf-8"/>
      5 <title>href click</title>
      6 <link rel="help" href="https://w3c.github.io/mathml-core/#attributes-common-to-html-and-mathml-elements">
      7 <link rel="help" href="https://w3c.github.io/mathml-core/#dom-and-javascript">
      8 <link rel="match" href="href-click-001.tentative-ref.html"/>
      9 <meta name="assert" content="Verify that a click on a link moves to the target.">
     10 <script type="text/javascript">
     11  function test()
     12  {
     13    var event = new MouseEvent('click', {bubbles: true, cancelable: true});
     14    document.getElementById('link').dispatchEvent(event);
     15    document.documentElement.className = "";
     16  }
     17 </script>
     18 </head>
     19 <body onload="test()">
     20 
     21  <p>This test passes if you see a green square.</p>
     22 
     23  <div style="width: 150px; height: 150px; overflow: hidden">
     24    <math>
     25      <mrow id="link" href="#target">
     26        <mspace id="space" width="150px" height="150px" style="background: red"/>
     27      </mrow>
     28    </math>
     29    <div style="height: 500px;"></div>
     30    <math id="target">
     31      <mspace width="150px" height="150px" style="background: green"/>
     32    </math>
     33  </div>
     34 
     35 </body>
     36 </html>