layout/reftests/mathml/displaystyle-2.html
author Frédéric Wang <fwang@igalia.com>
Wed, 14 Aug 2019 18:55:16 +0000
changeset 488187 52aec1da83945cfef108316fc233e0bfd5f622ee
parent 293852 1a343fc53ce5ccd35a5cd308c34ec142ee103ee6
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

<!DOCTYPE html>
<html>
  <head>
    <title>displaystyle</title>
    <meta charset="utf-8"/>
    <style>
      @font-face
      {
          font-family: Ahem;
          src: url(../fonts/Ahem.ttf);
      }
      math {
          font: 25px Ahem;
      }
    </style>
  </head>
  <body>

    <!-- Test the effect of displaystyle on munder, mover and munderover -->
    <math>
      <mstyle displaystyle="true">
        <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
        <mover><mo movablelimits="true">O</mo><mo>O</mo></mover>
        <munderover><mo movablelimits="true">O</mo><mo>O</mo><mo>O</mo></munderover>
      </mstyle>
      <mstyle displaystyle="false">
        <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
        <mover><mo movablelimits="true">O</mo><mo>O</mo></mover>
        <munderover><mo movablelimits="true">O</mo><mo>O</mo><mo>O</mo></munderover>
      </mstyle>
    </math>

  </body>
</html>