Files
firefox/testing/web-platform/mozilla/tests/mathml/scripts/munderover-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

39 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>Test munderover with empty scripts</title>
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=669932">
<link rel="match" href="munderover-empty-scripts-ref.html">
<meta name="assert" content="Verify elements with empty under/over scripts render the same as equivalent elements with less scripts.">
</head>
<body>
<p>munder / munderover with empty overscript:
<math>
<munder 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>
</munder>
</math>
</p>
<p>mover / munderover with empty underscript:
<math>
<mover 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>
</mover>
</math>
</p>
<p>mrow / munder with empty scripts:
<math>
<mrow style="background: red;">
<mtext style="background-color: rgba(0, 0, 255, 0.4);">AAA</mtext>
</mrow>
</math>
</p>
</body>
</html>