summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-004.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-004.html
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-adbda400be353e676059e335c3c0aaf99e719475.tar.xz
firefox-adbda400be353e676059e335c3c0aaf99e719475.zip
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-004.html')
-rw-r--r--testing/web-platform/mozilla/tests/mathml/operator-stretching/scale-stretchy-004.html50
1 files changed, 50 insertions, 0 deletions
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>