tor-browser

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

maction-click.html (1040B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3  <head>
      4    <meta charset="utf-8"/>
      5    <title>maction click</title>
      6    <link rel="help" href="https://www.w3.org/TR/MathML3/chapter3.html#presm.maction"/>
      7    <link rel="help" href="https://w3c.github.io/mathml-core/#dfn-maction"/>
      8    <link rel="match" href="maction-click-ref.html"/>
      9    <meta name="assert" content="Verify that maction doesn't respond to click events."/>
     10    <script type="text/javascript">
     11      function test() {
     12        var event = new MouseEvent("click", { bubbles: true, cancelable: true });
     13        document.getElementById("target").dispatchEvent(event);
     14        document.documentElement.className = "";
     15      }
     16    </script>
     17  </head>
     18  <body onload="test()">
     19    <p>This test passes if you see a green square.</p>
     20    <math>
     21      <maction actiontype="toggle" id="target">
     22        <mspace width="150px" height="150px" style="background: green"/>
     23        <mspace width="150px" height="150px" style="background: red"/>
     24      </maction>
     25    </math>
     26  </body>
     27 </html>