diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
commit | fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 (patch) | |
tree | 4c1ccaf5486d4f2009f9a338a98a83e886e29c97 /testing/web-platform/mozilla/tests/mathml/operator-stretching | |
parent | Releasing progress-linux version 124.0.1-1~progress7.99u1. (diff) | |
download | firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.tar.xz firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/mozilla/tests/mathml/operator-stretching')
16 files changed, 464 insertions, 0 deletions
diff --git a/testing/web-platform/mozilla/tests/mathml/operator-stretching/overbar-width-1-ref.xhtml b/testing/web-platform/mozilla/tests/mathml/operator-stretching/overbar-width-1-ref.xhtml new file mode 100644 index 0000000000..64e89f403f --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/operator-stretching/overbar-width-1-ref.xhtml @@ -0,0 +1,26 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <style type="text/css"> + html { background-color: grey; } + div { display: inline-block; + font-size: 30px; + line-height: 60px; /* Ensure space for overbar */ + border: 1px solid white; + padding: 2px; /* 10% error allowed in char selection */ + background-color: black; + color: red; } + </style> + </head> +<body> + <div> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mphantom> + <mover> + <mi>ai</mi> + <mo>¯</mo> + </mover> + </mphantom> + </math> + </div> +</body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/operator-stretching/overbar-width-1.xhtml b/testing/web-platform/mozilla/tests/mathml/operator-stretching/overbar-width-1.xhtml new file mode 100644 index 0000000000..317504a007 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/operator-stretching/overbar-width-1.xhtml @@ -0,0 +1,27 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Check width of stretchy OverBar</title> + <link rel="match" href="overbar-width-1.xhtml"/> + <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=427666"/> + <style type="text/css"> + html { background-color: grey; } + div { display: inline-block; + font-size: 30px; + line-height: 60px; /* Ensure space for overbar */ + border: 1px solid white; + padding: 2px; /* 10% error allowed in char selection */ + background-color: black; + color: black; } + </style> + </head> +<body> + <div> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mover> + <mi>ai</mi> + <mo>¯</mo> + </mover> + </math> + </div> +</body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-001-ref.html b/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-001-ref.html new file mode 100644 index 0000000000..36a2a574f8 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-001-ref.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"/> + <title>Maximal size for a vertical arrow stretched by scaling</title> + </head> + <body> + <table style="position: absolute;"> + <tr> + <td><div style="height: 200px; width: 5px; background: black"/></td> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mrow> + <mspace height="50px" depth="50px" width="5px" + style="background: yellow" /> + <mspace height="55px" depth="55px" width="50px" + style="background: red;"/> + </mrow> + </math> + </td> + </tr> + </table> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-001.html b/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-001.html new file mode 100644 index 0000000000..77b355f404 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-001.html @@ -0,0 +1,48 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"/> + <title>Maximal size for a vertical arrow stretched by scaling</title> + <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=414277"> + <link rel="match" href="scale-stretchy-001-ref.html"> + <meta name="assert" content="Verify maximal height of vertical operator stretched by scaling."> + </head> + <body> + <!-- This assumes that the system fonts do not provide a way to draw a + bigger U+290B DOWNWARDS TRIPLE ARROW and that preference + `mathml.scale_stretchy_operators` is enabled, so that we exercise + stretching of largeop using a scale. This test may still pass if + stretching is not performed via a scale though. --> + <table style="position: absolute;"> + <tr> + <td><div style="height: 200px; width: 5px; background: black"/></td> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mrow> + <mspace height="50px" depth="50px" width="5px" + style="background: yellow" /> + <mo style="color: blue;">⤋</mo> + </mrow> + </math> + </td> + </tr> + </table> + <!-- The red rect is slightly taller than the target size so it should + completely cover the operator. --> + <table style="position: absolute;"> + <tr> + <td><div style="height: 200px; width: 5px; background: black"/></td> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mrow> + <mspace height="50px" depth="50px" width="5px" + style="background: yellow" /> + <mspace height="55px" depth="55px" width="50px" + style="background: red;"/> + </mrow> + </math> + </td> + </tr> + </table> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-002-ref.html b/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-002-ref.html new file mode 100644 index 0000000000..7b0e084364 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-002-ref.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"/> + <title>Minimal size for a vertical arrow stretched by scaling</title> + </head> + <body> + <table style="position: absolute;"> + <tr> + <td><div style="height: 200px; width: 5px; background: black"/></td> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mrow> + <mspace height="50px" depth="50px" width="5px" + style="background: yellow" /> + <mspace height="44px" depth="44px" width="50px" + style="background: green;"/> + </mrow> + </math> + </td> + </tr> + </table> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-002.html b/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-002.html new file mode 100644 index 0000000000..db39cc97cc --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-002.html @@ -0,0 +1,48 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"/> + <title>Minimal size for a vertical arrow stretched by scaling</title> + <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=414277"> + <link rel="mismatch" href="scale-stretchy-002-ref.html"> + <meta name="assert" content="Verify minimal height of vertical operator stretched by scaling."> + </head> + <body> + <!-- This assumes that the system fonts do not provide a way to draw a + bigger U+290B DOWNWARDS TRIPLE ARROW and that preference + `mathml.scale_stretchy_operators` is enabled, so that we exercise + stretching of largeop using a scale. This test may still pass if + stretching is not performed via a scale though. --> + <table style="position: absolute;"> + <tr> + <td><div style="height: 200px; width: 5px; background: black"/></td> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mrow> + <mspace height="50px" depth="50px" width="5px" + style="background: yellow" /> + <mo style="color: blue;">⤋</mo> + </mrow> + </math> + </td> + </tr> + </table> + <!-- The green rect is slightly shorter than the target size so it should + not completely cover the operator. --> + <table style="position: absolute;"> + <tr> + <td><div style="height: 200px; width: 5px; background: black"/></td> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mrow> + <mspace height="50px" depth="50px" width="5px" + style="background: yellow" /> + <mspace height="44px" depth="44px" width="50px" + style="background: green;"/> + </mrow> + </math> + </td> + </tr> + </table> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-003-ref.html b/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-003-ref.html new file mode 100644 index 0000000000..b5935f306a --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-003-ref.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"/> + <title>Maximal size for a horizontal arrow stretched by scaling</title> + </head> + <body> + <table style="position: absolute;"> + <tr align="center"> + <td><div style="width: 200px; height: 5px; background: black"/></td> + </tr> + <tr align="center"> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <munder accentunder="false"> + <mspace width="100px" height="5px" style="background: yellow"/> + <mspace width="110px" height="25px" depth="25px" + style="background: red;"/> + </munder> + </math> + </td> + </tr> + </table> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-003.html b/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-003.html new file mode 100644 index 0000000000..7191a329b4 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-003.html @@ -0,0 +1,50 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"/> + <title>Maximal size for a horizontal arrow stretched by scaling</title> + <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=414277"> + <link rel="match" href="scale-stretchy-003-ref.html"> + <meta name="assert" content="Verify maximal height of horizontal operator stretched by scaling."> + </head> + <body> + <!-- This assumes that the system fonts do not provide a way to draw a + bigger U+21DB RIGHTWARDS TRIPLE ARROW and that preference + `mathml.scale_stretchy_operators` is enabled, so that we exercise + stretching of largeop using a scale. This test may still pass if + stretching is not performed via a scale though. --> + <table style="position: absolute;"> + <tr align="center"> + <td><div style="width: 200px; height: 5px; background: black"/></td> + </tr> + <tr align="center"> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <munder accentunder="false"> + <mspace width="100px" height="5px" style="background: yellow"/> + <mo style="color: blue;">⇛</mo> + </munder> + </math> + </td> + </tr> + </table> + <!-- The red rect is slightly wider than the target size so it should + completely cover the operator. --> + <table style="position: absolute;"> + <tr align="center"> + <td><div style="width: 200px; height: 5px; background: black"/></td> + </tr> + <tr align="center"> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <munder accentunder="false"> + <mspace width="100px" height="5px" style="background: yellow"/> + <mspace width="110px" height="25px" depth="25px" + style="background: red;"/> + </munder> + </math> + </td> + </tr> + </table> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-004-ref.html b/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-004-ref.html new file mode 100644 index 0000000000..ad797c46d1 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-004-ref.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"/> + <title>Minimal size for a horizontal arrow stretched by scaling (reference)</title> + </head> + <body> + <table style="position: absolute;"> + <tr align="center"> + <td><div style="width: 200px; height: 5px; background: black"/></td> + </tr> + <tr align="center"> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <munder> + <mspace width="100px" height="5px" style="background: yellow"/> + <mspace width="88px" height="25px" depth="25px" + style="background: green;"/> + </munder> + </math> + </td> + </tr> + </table> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-004.html b/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-004.html new file mode 100644 index 0000000000..f7d36b36e2 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-004.html @@ -0,0 +1,50 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"/> + <title>Minimal size for a horizontal arrow stretched by scaling</title> + <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=414277"> + <link rel="mismatch" href="scale-stretchy-004-ref.html"> + <meta name="assert" content="Verify minimal width of horizontal operator stretched by scaling."> + </head> + <body> + <!-- This assumes that the system fonts do not provide a way to draw a + bigger U+21DB RIGHTWARDS TRIPLE ARROW and that preference + `mathml.scale_stretchy_operators` is enabled, so that we exercise + stretching of largeop using a scale. This test may still pass if + stretching is not performed via a scale though. --> + <table style="position: absolute;"> + <tr align="center"> + <td><div style="width: 200px; height: 5px; background: black"/></td> + </tr> + <tr align="center"> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <munder> + <mspace width="100px" height="5px" style="background: yellow"/> + <mo style="color: blue;">⇛</mo> + </munder> + </math> + </td> + </tr> + </table> + <!-- The green rect is slightly narrower than the target size so it should + not completely cover the operator. --> + <table style="position: absolute;"> + <tr align="center"> + <td><div style="width: 200px; height: 5px; background: black"/></td> + </tr> + <tr align="center"> + <td> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <munder> + <mspace width="100px" height="5px" style="background: yellow"/> + <mspace width="88px" height="25px" depth="25px" + style="background: green;"/> + </munder> + </math> + </td> + </tr> + </table> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-005-ref.html b/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-005-ref.html new file mode 100644 index 0000000000..c1bd50201b --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-005-ref.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"/> + <title>Largeop in display mode stretched by scaling (reference)</title> + </head> + <body> + <math display="block"> + <mo largeop="false">⨌</mo> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-005.html b/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-005.html new file mode 100644 index 0000000000..3f20eed587 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-005.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"/> + <title>Largeop in display mode stretched by scaling</title> + <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=414277"> + <link rel="mismatch" href="scale-stretchy-005-ref.html"> + <meta name="assert" content="Verify that a displaystyle largeop can be drawn bigger by scaling."> + </head> + <body> + <!-- This assumes that the system fonts do not provide a way to draw a + bigger U+2A0C QUADRUPLE INTEGRAL OPERATOR and that preference + `mathml.scale_stretchy_operators` is enabled, so that we exercise + stretching of largeop using a scale. This test may still pass if + stretching is not performed via a scale though. --> + <math display="block"> + <mo largeop="true">⨌</mo> + </math> + </body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/operator-stretching/stretch-equal-sign-with-default-font-ref.html b/testing/web-platform/mozilla/tests/mathml/operator-stretching/stretch-equal-sign-with-default-font-ref.html new file mode 100644 index 0000000000..074d0e0415 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/operator-stretching/stretch-equal-sign-with-default-font-ref.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <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> diff --git a/testing/web-platform/mozilla/tests/mathml/operator-stretching/stretch-equal-sign-with-default-font.html b/testing/web-platform/mozilla/tests/mathml/operator-stretching/stretch-equal-sign-with-default-font.html new file mode 100644 index 0000000000..2ddcdbe683 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/operator-stretching/stretch-equal-sign-with-default-font.html @@ -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> diff --git a/testing/web-platform/mozilla/tests/mathml/operator-stretching/underbar-width-1-ref.xhtml b/testing/web-platform/mozilla/tests/mathml/operator-stretching/underbar-width-1-ref.xhtml new file mode 100644 index 0000000000..737673ccb1 --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/operator-stretching/underbar-width-1-ref.xhtml @@ -0,0 +1,26 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <style type="text/css"> + html { background-color: grey; } + div { display: inline-block; + font-size: 30px; + line-height: 60px; /* Ensure space for underbar */ + border: 1px solid white; + padding: 2px; /* 10% error allowed in char selection */ + background-color: black; + color: red; } + </style> + </head> +<body> + <div> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <mphantom> + <munder> + <mn>1</mn> + <mo>̲</mo> + </munder> + </mphantom> + </math> + </div> +</body> +</html> diff --git a/testing/web-platform/mozilla/tests/mathml/operator-stretching/underbar-width-1.xhtml b/testing/web-platform/mozilla/tests/mathml/operator-stretching/underbar-width-1.xhtml new file mode 100644 index 0000000000..d2539d74ec --- /dev/null +++ b/testing/web-platform/mozilla/tests/mathml/operator-stretching/underbar-width-1.xhtml @@ -0,0 +1,27 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Check width of stretchy UnderBar</title> + <link rel="match" href="underbar-width-1.xhtml"/> + <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=428863"/> + <style type="text/css"> + html { background-color: grey; } + div { display: inline-block; + font-size: 30px; + line-height: 60px; /* Ensure space for underbar */ + border: 1px solid white; + padding: 2px; /* 10% error allowed in char selection */ + background-color: black; + color: black; } + </style> + </head> +<body> + <div> + <math xmlns="http://www.w3.org/1998/Math/MathML"> + <munder> + <mn>1</mn> + <mo>̲</mo> + </munder> + </math> + </div> +</body> +</html> |