summaryrefslogtreecommitdiffstats
path: root/layout/reftests/mathml/opentype-fraction-dynamic-linethickness.html
blob: aaf9089e4559b30961cf05675c71862bb4b2801d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<html class="reftest-wait">
  <head>
    <title>mfrac linethickness</title>
    <style type="text/css">
      math {
        font-size: 10px;
      }
      @font-face {
        font-family: fraction-1;
        src: url(../fonts/math/fraction-1.otf);
      }
    </style>
    <script type="text/javascript">
      function doTest() {
        var mfracs = document.getElementsByTagName("mfrac");
        mfracs[0].removeAttribute("linethickness");
        mfracs[1].removeAttribute("linethickness");
        document.documentElement.removeAttribute("class");
      }
      window.addEventListener("MozReftestInvalidate", doTest);
    </script>
  </head>
  <body>
    <math style="font-family: fraction-1;">
      <mfrac linethickness="200%">
        <mspace height="1em" width="1em" mathbackground="red"/>
        <mspace height="1em" width="1em" mathbackground="red"/>
      </mfrac>
    </math>
      <math displaystyle="true" style="font-family: fraction-1;">
        <mfrac linethickness="200%">
          <mspace height="1em" width="1em" mathbackground="red"/>
          <mspace height="1em" width="1em" mathbackground="red"/>
        </mfrac>
      </math>
  </body>
</html>