Skip to content

Commit

Permalink
Bug 1882817 - Convert reftest for stretchy equal sign to an internal …
Browse files Browse the repository at this point in the history
…WPT. r=emilio

This is a mismatch reftest introduced in bug 854339 to verify it is
possible to horizontally stretch the equal sign using unicode-based
glyph assembly such as the ones described in [1]. This is non-normative,
so keep it as an internal test for now.

[1] https://w3c.github.io/mathml-core/#unicode-based-glyph-assemblies

Differential Revision: https://phabricator.services.mozilla.com/D203426
  • Loading branch information
fred-wang committed Mar 4, 2024
1 parent a88cf1a commit 3ce3ef5
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 18 deletions.
1 change: 0 additions & 1 deletion layout/reftests/mathml/reftest.list
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
fails-if(cocoaWidget) == scale-stretchy-3.xhtml scale-stretchy-3-ref.xhtml
!= scale-stretchy-4.xhtml scale-stretchy-4-ref.xhtml
!= scale-stretchy-5.xhtml scale-stretchy-5-ref.xhtml
!= stretchy-1.html stretchy-1-ref.html
== scriptlevel-movablelimits-1.html scriptlevel-movablelimits-1-ref.html
== munderover-align-accent-false.html munderover-align-accent-false-ref.html
== munderover-align-accent-true.html munderover-align-accent-true-ref.html
Expand Down
14 changes: 0 additions & 14 deletions layout/reftests/mathml/stretchy-1.html

This file was deleted.

3 changes: 3 additions & 0 deletions testing/web-platform/mozilla/tests/mathml/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ any specification:
interpretation is unclear in current version of MathML Core.
See [issue 132](https://github.com/w3c/mathml-core/issues/132).

- `operator-stretching`: Tests for operator stretching, using Gecko-specific
methods that are not part of the current version of MathML Core.

- `rtl`: Tests for RTL MathML, for aspects not completely defined in
MathML Core or for which we use things like scale transform for
mirroring.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<!DOCTYPE html>
<html>
<head><title>Test stretchy equal (bug 854339)</title></head>
<head>
<title>Horizontal stretching of equal of U+003D EQUAL SIGN with default font (reference)</title>
</head>
<body>

<math>
<munder>
<mi>AVERYLONGBASE</mi>
<mo stretchy="false">=</mo>
</munder>
</math>

</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<title>Horizontal stretching of U+003D EQUAL SIGN with default font</title>
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=854339">
<link rel="help" href="https://w3c.github.io/mathml-core/#unicode-based-glyph-assemblies">
<link rel="mismatch" href="stretch-equal-sign-with-default-font-ref.html">
<meta name="assert" content="Verify EQUAL SIGN can be stretched horizontally with default fonts.">
</head>
<body>
<math>
<munder>
<mi>AVERYLONGBASE</mi>
<mo stretchy="true">=</mo>
</munder>
</math>
</body>
</html>

0 comments on commit 3ce3ef5

Please sign in to comment.