tor-browser

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

menclose-2-right-ref.html (1372B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3  <head>
      4    <title>menclose right</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          document.getElementById("path").setAttribute("d",
     17                                                       "M" + ((box.left + box.width) + "," + box.top) + " " +
     18                                                       "l" + (0 + "," + box.height));
     19          document.documentElement.removeAttribute("class");
     20      }
     21      document.documentElement.addEventListener("TestRendered",doTest);
     22    </script>
     23  </head>
     24  <body>
     25 
     26    <div style="position: absolute; left: 20px; top: 20px;">
     27      <math>
     28        <mphantom>
     29          <menclose id="box" notation="right">
     30            <mspace width="200px" height="100px"></mspace>
     31          </menclose>
     32        </mphantom>
     33      </math>
     34    </div>
     35 
     36    <div style="position: absolute; left: 0px; top: 0px;">
     37      <svg width="500px" height="500px">
     38        <path id="path" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path>
     39      </svg>
     40    </div>
     41 
     42  </body>
     43 </html>