summaryrefslogtreecommitdiffstats
path: root/layout/reftests/mathml/semantics-1.xhtml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /layout/reftests/mathml/semantics-1.xhtml
parentInitial commit. (diff)
downloadfirefox-esr-upstream.tar.xz
firefox-esr-upstream.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/mathml/semantics-1.xhtml')
-rw-r--r--layout/reftests/mathml/semantics-1.xhtml107
1 files changed, 107 insertions, 0 deletions
diff --git a/layout/reftests/mathml/semantics-1.xhtml b/layout/reftests/mathml/semantics-1.xhtml
new file mode 100644
index 0000000000..40d5b157f8
--- /dev/null
+++ b/layout/reftests/mathml/semantics-1.xhtml
@@ -0,0 +1,107 @@
+<?xml version="1.0" encoding="utf-8"?>
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <meta http-equiv="content-type"
+ content="application/xhtml+xml; charset=utf-8" />
+ <title>Various tests for semantics</title>
+ <style>
+ @font-face
+ {
+ font-family: Ahem;
+ src: url(../fonts/Ahem.ttf);
+ }
+ math, p {
+ font: 25px Ahem;
+ }
+</style>
+</head>
+
+<body>
+<!-- displaystyle (bug 468059) -->
+<p><math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
+ <semantics>
+ <munderover>
+ <mo movablelimits="true">pXp</mo>
+ <mtext>XpXpXp</mtext>
+ <mtext>XpXpXp</mtext>
+ </munderover>
+ </semantics>
+</math></p>
+
+<!-- embellished operator (bug 21479) -->
+<p><math xmlns="http://www.w3.org/1998/Math/MathML">
+ <mover>
+ <mspace width="300px" height="10px" mathbackground="black"></mspace>
+ <semantics><mo>&#xaf;</mo></semantics>
+ </mover>
+</math></p>
+
+<!-- unwanted whitespace (bug 512418) -->
+<p>XpXpXp<math xmlns="http://www.w3.org/1998/Math/MathML">
+ <semantics>
+ <mrow>
+ <mrow>
+ <mo>lcm</mo>
+ <mo>(</mo>
+ <mn>a</mn>
+ <mo>,</mo>
+ <mn>b</mn>
+ <mo>)</mo>
+ </mrow>
+ <mo>=</mo>
+ <mfrac>
+ <mrow>
+ <mo>(</mo>
+ <mn>a</mn>
+ <mo>&#x2062;</mo>
+ <mn>b</mn>
+ <mo>)</mo>
+ </mrow>
+ <mrow>
+ <mo>gcd</mo>
+ <mo>(</mo>
+ <mn>a</mn>
+ <mo>,</mo>
+ <mn>b</mn>
+ <mo>)</mo>
+ </mrow>
+ </mfrac>
+ </mrow>
+ </semantics>
+</math>XpXpXp</p>
+
+<!-- maction and semantics (bug 523037) -->
+<p>XpXpXp<math xmlns="http://www.w3.org/1998/Math/MathML">
+ <maction actiontype="toggle" selection="3">
+ <mn>1</mn>
+ <mn>2</mn>
+ <semantics>
+ <mn>3</mn>
+ <annotation encoding="text">three</annotation>
+ </semantics>
+ <semantics>
+ <mn>4</mn>
+ <annotation encoding="text">four</annotation>
+ </semantics>
+ <mn>5</mn>
+ </maction>
+</math>XpXpXp</p>
+
+<!-- maction and semantics (bug 523045) -->
+<p>XpXpXp<math xmlns="http://www.w3.org/1998/Math/MathML">
+ <maction actiontype="toggle" selection="4">
+ <mn>1</mn>
+ <mn>2</mn>
+ <semantics>
+ <mn>3</mn>
+ <annotation encoding="text">three</annotation>
+ </semantics>
+ <semantics>
+ <mn>4</mn>
+ <annotation encoding="text">four</annotation>
+ </semantics>
+ <mn>5</mn>
+ </maction>
+</math>XpXpXp</p>
+</body>
+</html>