summaryrefslogtreecommitdiffstats
path: root/layout/reftests/mathml/semantics-1.xhtml
blob: 40d5b157f8a0c017f8ae1910e74d7eeb61747a75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
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>