layout/reftests/bugs/355548-3.xml
author Frédéric Wang <fwang@igalia.com>
Thu, 15 Aug 2019 18:44:36 +0000
changeset 488436 2213833fcec3e1b7444a29d1ed038f39a3141cf7
parent 117886 aef27223779a07170808b7d0c06b659ca541e391
permissions -rw-r--r--
Bug 1574087. Make MathML length, dir, display, displaystyle and mathvariant case insensitive. r=emilio See https://github.com/mathml-refresh/mathml/issues/22 * mathml/relations/css-styling/attribute-mapping-001.html (length, dir) * mathml/relations/html5-tree/display-1.html (display) * mathml/relations/css-styling/displaystyle-1.html (displaystyle) * mathml/relations/css-styling/displaystyle-2.html (displaystyle) * mathml/relations/css-styling/mathvariant-case-sensitivity.html (mathvariant) layout/reftests/bugs/355548-3.xml has been updated now that units are case insensitive. Note: * mathml/relations/css-styling/attribute-mapping-002.html also checks case insensitiveness of mathvariant and displaystyle but for now we map these attributes to internal -moz-* CSS properties. * mathcolor and mathbackground values are already case insensitive, this is verified by mathml/relations/css-styling/attribute-mapping-001.html Differential Revision: https://phabricator.services.mozilla.com/D42081

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML">
<body>
<!-- Test attribute parsing -->
<p><m:math><m:mstyle scriptlevel="0" scriptsizemultiplier="0.5" scriptminsize="18px" style="font-size:48px;">
  <!-- MathML number attributes cannot start with '+' -->
  <m:mstyle scriptsizemultiplier="+1"><m:mstyle scriptlevel="+1"><m:mi>Id</m:mi></m:mstyle></m:mstyle>
</m:mstyle></m:math></p>

<p><m:math><m:mstyle scriptlevel="0" scriptsizemultiplier="0.5" scriptminsize="18px" style="font-size:48px;">
  <m:mstyle mathsize="30px"><m:mi>Id</m:mi></m:mstyle>
  <m:mstyle fontsize="30px"><m:mi>Id</m:mi></m:mstyle>
  <!-- mathsize takes priority over fontsize -->
  <m:mstyle mathsize="30px" fontsize="20px"><m:mi>Id</m:mi></m:mstyle>
  <!-- CSS takes priority over mathsize and fontsize -->
  <m:mstyle mathsize="24px" fontsize="20px" style="font-size:30px;"><m:mi>Id</m:mi></m:mstyle>
</m:mstyle></m:math></p>

<p><m:math><m:mstyle scriptlevel="0" scriptsizemultiplier="0.5" scriptminsize="18px" style="font-size:48px;">
  <m:mstyle mathsize="small"><m:mi>Id</m:mi></m:mstyle>
  <m:mstyle mathsize="normal"><m:mi>Id</m:mi></m:mstyle>
  <m:mstyle mathsize="big"><m:mi>Id</m:mi></m:mstyle>
  <!-- check that fontsize doesn't accept those values -->
  <m:mstyle fontsize="small"><m:mi>Id</m:mi></m:mstyle>
  <m:mstyle fontsize="normal"><m:mi>Id</m:mi></m:mstyle>
  <m:mstyle fontsize="big"><m:mi>Id</m:mi></m:mstyle>
</m:mstyle></m:math></p>

<p><m:math><m:mstyle scriptlevel="0" scriptsizemultiplier="0.5" scriptminsize="18px" style="font-size:48px;">
  <m:mstyle fontfamily="Verdana"><m:mi>Id</m:mi></m:mstyle>
  <m:mstyle fontfamily="Verdana" style="font-family:monospace;"><m:mi>Id</m:mi></m:mstyle>
</m:mstyle></m:math></p>

<p><m:math><m:mstyle scriptlevel="0" scriptsizemultiplier="0.5" scriptminsize="18px" style="font-size:48px;">
  <m:mstyle mathbackground="green"><m:mi>Id</m:mi></m:mstyle>
  <m:mstyle background="green"><m:mi>Id</m:mi></m:mstyle>
  <!-- mathsize takes priority over fontsize -->
  <m:mstyle mathbackground="green" background="red"><m:mi>Id</m:mi></m:mstyle>
  <!-- CSS takes priority over mathsize and fontsize -->
  <m:mstyle mathbackground="red" background="yellow" style="background:green;"><m:mi>Id</m:mi></m:mstyle>
</m:mstyle></m:math></p>

<p><m:math><m:mstyle scriptlevel="0" scriptsizemultiplier="0.5" scriptminsize="18px" style="font-size:48px;">
  <m:mstyle mathbackground="#0F0"><m:mi>Id</m:mi></m:mstyle>
  <m:mstyle mathbackground="#00FF00"><m:mi>Id</m:mi></m:mstyle>
</m:mstyle></m:math></p>

<p><m:math><m:mstyle scriptlevel="0" scriptsizemultiplier="0.5" scriptminsize="18px" style="font-size:48px;">
  <m:mstyle mathcolor="green"><m:mi>Id</m:mi></m:mstyle>
  <m:mstyle color="green"><m:mi>Id</m:mi></m:mstyle>
  <!-- mathsize takes priority over fontsize -->
  <m:mstyle mathcolor="green" color="red"><m:mi>Id</m:mi></m:mstyle>
  <!-- CSS takes priority over mathsize and fontsize -->
  <m:mstyle mathcolor="red" color="yellow" style="color:green;"><m:mi>Id</m:mi></m:mstyle>
</m:mstyle></m:math></p>

<p><m:math><m:mstyle scriptlevel="0" scriptsizemultiplier="0.5" scriptminsize="18px" style="font-size:48px;">
  <!-- test invalid values for MathML length attributes -->
  <m:mstyle mathsize="20 px"><m:mi>Id</m:mi></m:mstyle>
  <m:mstyle mathsize=".px"><m:mi>Id</m:mi></m:mstyle>
  <m:mstyle mathsize="..px"><m:mi>Id</m:mi></m:mstyle>
  <m:mstyle mathsize="+20px"><m:mi>Id</m:mi></m:mstyle>
</m:mstyle></m:math></p>

<p><m:math><m:mstyle scriptlevel="0" scriptsizemultiplier="0.5" scriptminsize="18px" style="font-size:48px;">
  <!-- test valid values for MathML length attributes -->
  <m:mstyle mathsize=" 24px "><m:mi>Id</m:mi></m:mstyle>
  <m:mstyle mathsize="24.0px"><m:mi>Id</m:mi></m:mstyle>
  <m:mstyle mathsize="24.px"><m:mi>Id</m:mi></m:mstyle>
  <m:mstyle mathsize="0.5"><m:mi>Id</m:mi></m:mstyle>
  <m:mstyle mathsize="50%"><m:mi>Id</m:mi></m:mstyle>
  <m:mstyle mathsize=".0px"><m:mi>Id</m:mi></m:mstyle>
  <m:mstyle mathsize="-0px"><m:mi>Id</m:mi></m:mstyle>
  <m:mstyle mathsize="0"><m:mi>Id</m:mi></m:mstyle>
  <m:mstyle mathsize="20PX"><m:mi>Id</m:mi></m:mstyle>
</m:mstyle></m:math></p>

</body>
</html>