tor-browser

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

frac-bar-003.html (1461B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <meta charset="utf-8">
      5    <title>fractions bar</title>
      6    <link rel="help" href="https://w3c.github.io/mathml-core/#fractions-mfrac">
      7    <meta name="assert" content="Verifies that the fraction bar takes the full width of the mfrac element">
      8    <link rel="match" href="frac-bar-003-ref.html">
      9    <style type="text/css">
     10      @font-face {
     11        font-family: TestFont;
     12        src: url("/fonts/math/fraction-rulethickness10000.woff");
     13      }
     14      math {
     15        /* FractionRuleThickness = 10000 * 1 / 1000 = 10px; */
     16        /* The gap / shift / axisheight parameters are set to 0. */
     17        font-family: "TestFont";
     18        font-size: 1px;
     19      }
     20      #container {
     21          position: absolute;
     22          left: 10px;
     23          top: 50px;
     24          width: 150px;
     25          height: 150px;
     26      }
     27 
     28      /* Revert style specified in the UA style sheet that changes box size. */
     29      mfrac { padding: 0; }
     30    </style>
     31    <script src="/mathml/support/fonts.js"></script>
     32  </head>
     33  <body>
     34    <p>This test passes if you see a green square.</p>
     35    <div id="container">
     36      <math>
     37        <mfrac style="width: 150px; color: green; font-size: 15em">
     38          <mspace></mspace>
     39          <mspace></mspace>
     40        </mfrac>
     41      </math>
     42    </div>
     43    <script src="/mathml/support/feature-detection.js"></script>
     44    <script>MathMLFeatureDetection.ensure_for_match_reftest("has_mfrac");</script>
     45  </body>
     46 </html>