tor-browser

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

mi-fontstyle-fontweight.html (1124B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <meta charset="utf-8"/>
      5    <title>single-char mi and fontstyle/fontweight attributes</title>
      6    <link rel="help" href="https://w3c.github.io/mathml-core/#css-styling">
      7    <link rel="help" href="https://w3c.github.io/mathml-core/#the-mathvariant-attribute">
      8    <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1789081">
      9    <link rel="match" href="mi-fontstyle-fontweight-ref.html"/>
     10    <meta name="assert" content="Verify that fontstyle/fontweight don't cancel the mathvariant transform on single-char mi elements.">
     11    <style>
     12      @font-face {
     13        font-family: TestFont;
     14        src: url("/fonts/math/mathvariant-italic.woff");
     15      }
     16      .testfont {
     17        font-family: TestFont;
     18        font-size: 32px;
     19       }
     20    </style>
     21  </head>
     22  <body>
     23    <p>Test passes if you see <span class="testfont">&#x1D715;</span> rendered twice, without any bold or italic style applied:</p>
     24    <p><math class="testfont"><mi fontweight="bold">&#x2202;</mi></math></p>
     25    <p><math class="testfont"><mi fontstyle="normal">&#x2202;</mi></math></p>
     26  </body>
     27 </html>