summaryrefslogtreecommitdiffstats
path: root/layout/reftests/mathml/mstyle-3.xhtml
blob: 4b395d3942fe77c9150a1feece37da1ae9b2575d (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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<?xml version="1.0" encoding="us-ascii"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="content-type"
  content="application/xhtml+xml; charset=us-ascii" />
  <title>Test mstyle</title>
  <style type="text/css">
    table { width: 100%;  border-collapse: collapse; }
    td { border: solid black 1px; }
  </style>
</head>

<body>

<!-- The attributes below (except math@display) should no longer have effect on
     <mstyle>/<math> elements. See bug 838509 -->

<table>
  <tbody>
    <tr>
      <td>mo: form</td>
      <td><math xmlns="http://www.w3.org/1998/Math/MathML" form="postfix">
          <mstyle form="postfix">
            <mrow>
              <!-- We assume that the infix/postfix forms of _ do -->
              <!-- not have the same lspace/rspace values in the operator dictionary -->
              <mtext>_</mtext>
              <mo>_</mo>
              <mtext>_</mtext>
            </mrow>
          </mstyle>
        </math></td>
    </tr>
    <tr>
      <td>mo: lspace, rspace</td>
      <td><math xmlns="http://www.w3.org/1998/Math/MathML" lspace="0" rspace="0">
          <mstyle lspace="0" rspace="0">
            <mrow>
              <!-- We assume that the infix form of _ has -->
              <!-- nonzero lspace/rspace values in the operator dictionary -->
              <mtext>_</mtext>
              <mo>_</mo>
              <mtext>_</mtext>
            </mrow>
          </mstyle>
        </math></td>
    </tr>
    <tr>
      <td>mo: stretchy</td>
      <td><math xmlns="http://www.w3.org/1998/Math/MathML" stretchy="false">
          <mstyle stretchy="false">
            <mover>
              <!-- We assume that the arrow has stretchy=true in the operator dictionary -->
              <mtext>abcd</mtext>
              <mo>&#x2192;</mo>
            </mover>
          </mstyle>
        </math></td>
    </tr>
    <tr>
      <td>mo: accent</td>
      <td><math xmlns="http://www.w3.org/1998/Math/MathML" accent="false">
          <mstyle accent="false">
            <mover>
              <!-- We assume &#x23de; has accent=true in the operator dictionary -->
              <mrow>
                <mi>x</mi>
                <mo>+</mo>
                <mi>y</mi>
                <mo>+</mo>
                <mi>z</mi>
              </mrow>
              <mo>&#x23de;</mo>
            </mover>
          </mstyle>
        </math></td>
    </tr>
    <tr>
      <td>mo: maxsize</td>
      <td><math xmlns="http://www.w3.org/1998/Math/MathML" maxsize="100%">
          <mstyle maxsize="100%">
            <mo>(</mo>
            <mspace height="3em"/>
          </mstyle>
        </math></td>
    </tr>
    <tr>
      <td>mo: minsize</td>
      <td><math xmlns="http://www.w3.org/1998/Math/MathML" minsize="300%">
          <mstyle minsize="300%">
            <mo>(</mo>
            <mspace height="1em"/>
          </mstyle>
        </math></td>
    </tr>
    <tr>
      <td>mo: symmetric</td>
      <td><math xmlns="http://www.w3.org/1998/Math/MathML" symmetric="false">
          <!-- We assume that ( has symmetric=true in the operator dictionary -->
          <mstyle symmetric="false">
            <mtext>_</mtext>
            <mo minsize="200%">(</mo>
            <mtext>_</mtext>
          </mstyle>
        </math></td>
    </tr>
    <tr>
      <td>mo: movablelimits</td>
      <td><math xmlns="http://www.w3.org/1998/Math/MathML" movablelimits="false">
          <!-- We assume that &#x2211; has movablelimits=true in the operator dictionary -->
          <mstyle movablelimits="false">
            <munderover>
              <mo>&#x2211;</mo>
              <mi>a</mi>
              <mi>b</mi>
            </munderover>
          </mstyle>
        </math></td>
    </tr>
    <tr>
      <td>mo: largeop</td>
      <td><math xmlns="http://www.w3.org/1998/Math/MathML" display="block" largeop="false">
          <!-- We assume that &#x2211; has largeop=true in the operator dictionary -->
          <mstyle largeop="false">
            <mo>&#x2211;</mo>
          </mstyle>
        </math></td>
    </tr>
    <!-- 
            fence: This attribute generally has no direct effect on the visual rendering.
            separator: This attribute generally has no direct effect on the visual rendering.
      -->
  </tbody>
</table>
</body>
</html>