tor-browser

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

default-font-family.html (1338B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>Default font-family on the &lt;math&gt; root</title>
      6 <link rel="help" href="https://w3c.github.io/mathml-core/#the-top-level-math-element">
      7 <link rel="help" href="https://w3c.github.io/mathml-core/#user-agent-stylesheet">
      8 <meta name="assert" content="Verify that the default font-family is 'math'.">
      9 <script src="/resources/testharness.js"></script>
     10 <script src="/resources/testharnessreport.js"></script>
     11 </head>
     12 <body>
     13  <div id="log"></div>
     14  <div style="font-family: BB2F7F3E9FEE11EA96DF67A737751C2F;">
     15    <div id="inherited-reference"></div>
     16    <math id="math-not-inherited"></math>
     17  </div>
     18  <math id="math-default"></math>
     19 
     20  <script>
     21    function getFontFamily(id) {
     22        return window.getComputedStyle(document.getElementById(id)).fontFamily;
     23    }
     24 
     25    test(function () {
     26        assert_equals(getFontFamily("inherited-reference"), "BB2F7F3E9FEE11EA96DF67A737751C2F");
     27        assert_not_equals(getFontFamily("math-not-inherited"), getFontFamily("inherited-reference"));
     28    }, "Default font-family on <math> is not inherited");
     29 
     30    test(function () {
     31        assert_equals(getFontFamily("math-not-inherited"), "math");
     32        assert_equals(getFontFamily("math-default"), "math");
     33    }, "Default font-family on <math> is 'math'");
     34  </script>
     35 </body>
     36 </html>