layout/reftests/mathml/mfrac-linethickness-1-ref.xhtml
author Frédéric Wang <fwang@igalia.com>
Wed, 14 Aug 2019 18:55:16 +0000
changeset 488187 52aec1da83945cfef108316fc233e0bfd5f622ee
parent 71561 47fb7e9c7c6a7979e79200699902d96fe5e699f3
permissions -rw-r--r--
Bug 1573831 - Use more reliable text rendering for MathML reftests. r=emilio Do this for a few MathML tests that are marked random: * Use the Ahem font for text rendering. * Replace single-char mi with other token elements that don't use italic characters from the Mathematical Alphanumeric Symbols. Additionally, this fixes invalid markup for maction-dynamic-embellished-op ; the MathML3 spec says the actiontype attribute is required and tests seem to assume actiontype="toggle". https://www.w3.org/TR/MathML3/chapter3.html#presm.maction mtable-align-whitespace.html Differential Revision: https://phabricator.services.mozilla.com/D41958

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <style>
      @font-face
      {
          font-family: Ahem;
          src: url(../fonts/Ahem.ttf);
      }
      math {
          font: 25px Ahem;
      }
    </style>
  </head>
<body>
  <math xmlns="http://www.w3.org/1998/Math/MathML">
    <mfrac linethickness="medium">
      <mn>1</mn>
      <mn>2</mn>
    </mfrac>
    <mo>=</mo>
    <mfrac linethickness="1">
      <mn>1</mn>
      <mn>2</mn>
    </mfrac>
    <mo>=</mo>
    <mfrac linethickness="medium">
      <mn>1</mn>
      <mn>2</mn>
    </mfrac>
  </math>
</body>
</html>