tor-browser

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

menclose-2-box-ref.html (1338B)


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