tor-browser

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

math-script-level-font-size-clamping-001.tentative.html (1158B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <title>math-script-level clamping</title>
      5    <meta charset="utf-8">
      6    <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/3739">
      7    <link rel="help" href="https://mathml-refresh.github.io/mathml-core/#the-math-script-level-property">
      8    <meta name="assert" content="Clamping due to browser's min font size only affects the used size.">
      9    <link rel="match" href="math-script-level-font-size-clamping-001.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: 12px/1 Ahem;
     16      }
     17    </style>
     18  </head>
     19  <body>
     20    <p>Test passes if you see a square of side 12px.</p>
     21    <div class="container"><!-- Initial size is 12px. -->
     22      <div style="font-size: math; math-depth: add(8);"><!-- Size is 12*.71^8 = 0.7749042374949131 < 1px. -->
     23        <div style="font-size: math; math-depth: add(-8);">X</div><!-- back to 12px. -->
     24      </div>
     25    </div>
     26  </body>
     27 </html>