tor-browser

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

math-script-level-003.tentative.html (1141B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <title>math-depth</title>
      5    <meta charset="utf-8">
      6    <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/3746">
      7    <link rel="help" href="https://mathml-refresh.github.io/mathml-core/#the-math-script-level-property">
      8    <meta name="assert" content="If specified font-size is not 'math' then math-depth does not affect the computed value of font-size.">
      9    <link rel="match" href="math-script-level-003.tentative-ref.html">
     10    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     11    <style>
     12      .container {
     13          /* Ahem font does not have a MATH table so the font-size scale factor
     14             is always 0.71^{computed - inherited math script level} */
     15          font: 100px/1 Ahem;
     16      }
     17    </style>
     18  </head>
     19  <body>
     20    <p>Test passes if you see two squares of side 100px.</p>
     21    <div class="container">
     22      <!-- font-size: <length> -->
     23      <div style="math-depth: 1; font-size: 100px;">X</div>
     24    </div>
     25    <br/>
     26    <div class="container">
     27      <!-- inherited font-size -->
     28      <div style="math-depth: 1;">X</div>
     29    </div>
     30  </body>
     31 </html>