tor-browser

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

menclose-2-box.html (1348B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3  <head>
      4    <title>menclose box</title>
      5    <meta charset="utf-8"/>
      6    <link rel="match" href="menclose-2-box-ref.html"/>
      7    <link rel="stylesheet" href="/fonts/ahem.css" />
      8    <style>
      9      math, svg {
     10          font: 25px/1 Ahem;
     11      }
     12    </style>
     13    <script type="text/javascript">
     14      function doTest()
     15      {
     16          var box = document.getElementById("box").getBoundingClientRect();
     17          r = document.getElementById("rect");
     18          r.setAttribute("x", box.left );
     19          r.setAttribute("y", box.top );
     20          r.setAttribute("width", box.width );
     21          r.setAttribute("height", box.height );
     22          document.documentElement.removeAttribute("class");
     23      }
     24      document.documentElement.addEventListener("TestRendered",doTest);
     25    </script>
     26  </head>
     27 
     28  <body>
     29    <div style="position: absolute; left: 20px; top: 20px;">
     30      <math>
     31        <menclose id="box" notation="box">
     32          <mspace width="200px" height="100px"></mspace>
     33        </menclose>
     34      </math>
     35    </div>
     36 
     37    <div style="position: absolute; left: 0px; top: 0px;">
     38      <svg width="500px" height="500px">
     39        <rect id="rect" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></rect>
     40      </svg>
     41    </div>
     42 
     43  </body>
     44 </html>