Files
firefox/testing/web-platform/mozilla/tests/mathml/scripts/mmultiscripts-empty-scripts.html
Frédéric Wang 734d7c42ab Bug 1882817 - Export reftests for empty scripts to internal WPT tests. r=emilio
These tests compare scripted elements (e.g. `munderover` or
`mmultiscripts`) with empty scripts (e.g. `<mspace/>` or `<none/>`)
against the equivalent constructs without the empty scripts
(e.g. `mover`, `msup` etc). Gecko has some specific adjustments to make
them render the same, taking into account "ink" and logical metrics.
It's not clear whether this is aligned with MathML Core and one of the
test is even failing on some platforms (likely due to different system
fonts) so for now we just keep them as internal WPT tests.

Differential Revision: https://phabricator.services.mozilla.com/D203572
2024-03-05 19:20:17 +00:00

78 lines
2.1 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>Comparison of script elements</title>
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=669932">
<link rel="match" href="mmultiscripts-empty-scripts-ref.html">
<meta name="assert" content="Verify elements with empty sub/sup scripts render the same as equivalent elements with less scripts.">
</head>
<body>
msubsup:
<math>
<msubsup style="background: red;">
<mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext>
<mtext style="background-color: rgba(0, 255, 0, 0.4);">bbb</mtext>
<mtext style="background-color: rgba(0, 255, 0, 0.4);">ccc</mtext>
</msubsup>
</math>
<br><br>
<!-- Different rules apply to msub, so it won't provide equivalent output -->
msubsup:
<math>
<msubsup style="background: red;">
<mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext>
<mtext style="background-color: rgba(0, 255, 0, 0.4);">bbb</mtext>
<mrow></mrow>
</msubsup>
</math>
<br><br>
msup / msubsup:
<math>
<msup style="background: red;">
<mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext>
<mtext style="background-color: rgba(0, 255, 0, 0.4);">bbb</mtext>
</msup>
</math>
<math>
<msubsup style="background: red;">
<mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext>
<mrow></mrow>
<mtext style="background-color: rgba(0, 255, 0, 0.4);">bbb</mtext>
</msubsup>
</math>
<br><br>
mrow / msub:
<math>
<mrow style="background: red;">
<mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext>
</mrow>
</math>
<math>
<msub style="background: red;">
<mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext>
<mrow></mrow>
</msub>
</math>
<br><br>
msupsub:
<math>
<msubsup style="background: red;">
<mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext>
<mrow></mrow>
<mrow></mrow>
</msubsup>
</math>
</body>
</html>