tor-browser

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

href-click-002.tentative.html (1225B)


      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-002.tentative-ref.html"/>
      9 <meta name="assert" content="Verify that a click on an element bubbles to an ancestor link.">
     10 <script type="text/javascript">
     11  function test()
     12  {
     13    var event = new MouseEvent('click', {bubbles: true, cancelable: true});
     14    document.getElementById('space').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 href="#target">
     26        <mrow>
     27          <mrow>
     28            <mspace id="space" width="150px" height="150px" style="background: red"/>
     29          </mrow>
     30        </mrow>
     31      </mrow>
     32    </math>
     33    <div style="height: 500px;"></div>
     34    <math id="target">
     35      <mspace width="150px" height="150px" style="background: green"/>
     36    </math>
     37  </div>
     38 
     39 </body>
     40 </html>