summaryrefslogtreecommitdiffstats
path: root/layout/reftests/mathml/disabled-scriptlevel-1-ref.xhtml
blob: 6b22791ab83f013a9f5fd11cd3a26150d6057a8e (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
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>scriptlevel</title>
    <meta charset="utf-8"/>
    <style>
      h2 {
        text-align:center;
      }
    </style>
  </head>
  <body>

    <!-- Test scriptlevel on mstyle -->
    <randomelement>
      <mstyle scriptsizemultiplier="2">
        <mtext>O</mtext>
        <mstyle scriptlevel="1"><mtext>O</mtext></mstyle>
      </mstyle>
    </randomelement>

    <!-- The mfrac element sets displaystyle to "false", or if it was already
         false increments scriptlevel by 1, within numerator and denominator.
      -->
    <randomelement>
      <mstyle scriptsizemultiplier="2">
        <mstyle displaystyle="false">
          <mfrac>
            <mtext>O</mtext>
            <mtext>O</mtext>
          </mfrac>
        </mstyle>
        <mstyle displaystyle="true">
          <mfrac>
            <mtext>O</mtext>
            <mtext>O</mtext>
          </mfrac>
        </mstyle>
      </mstyle>
    </randomelement>

    <!--    The mroot element increments scriptlevel by 2, and sets
            displaystyle to "false", within index, but leaves both attributes
            unchanged within base.
            The msqrt element leaves both attributes unchanged within its
            argument. -->
    <randomelement>
      <mstyle scriptsizemultiplier="2">
        <mroot>
          <mtext>O</mtext>
          <mtext>O</mtext>
        </mroot>
        <msqrt>
          <mtext>O</mtext>
        </msqrt>
      </mstyle>
    </randomelement>

<!--
    The msub element [...] increments scriptlevel by 1, and sets displaystyle to
   "false", within subscript, but leaves both attributes unchanged within base.

   The msup element [...] increments scriptlevel by 1, and sets displaystyle to
   "false", within superscript, but leaves both attributes unchanged within
   base.

   The msubsup element [...] increments scriptlevel by 1, and sets displaystyle
   to "false", within subscript and superscript, but leaves both attributes
   unchanged within base.

   The mmultiscripts element increments scriptlevel by 1, and sets displaystyle
   to "false", within each of its arguments except base, but leaves both
   attributes unchanged within base.
   -->
    <randomelement>
      <mstyle scriptsizemultiplier="2">
        <msub>
          <mtext>O</mtext>
          <mtext>O</mtext>
        </msub>
        <msup>
          <mtext>O</mtext>
          <mtext>O</mtext>
        </msup>
        <msubsup>
          <mtext>O</mtext>
          <mtext>O</mtext>
          <mtext>O</mtext>
        </msubsup>
        <mmultiscripts>
          <mtext>O</mtext>
          <mtext>O</mtext>
          <mtext>O</mtext>
          <mprescripts/>
          <mtext>O</mtext>
          <mtext>O</mtext>
        </mmultiscripts>
      </mstyle>
    </randomelement>

<!-- 
   The munder element [...] always sets displaystyle to "false" within the
   underscript, but increments scriptlevel by 1 only when accentunder is
   "false". Within base, it always leaves both attributes unchanged.

   The mover element [...] always sets displaystyle to "false" within
   overscript, but increments scriptlevel by 1 only when accent is "false".
   Within base, it always leaves both attributes unchanged.

   The munderover [..] always sets displaystyle to "false" within underscript
   and overscript, but increments scriptlevel by 1 only when accentunder or
   accent, respectively, are "false". Within base, it always leaves both
   attributes unchanged.
-->   
    <randomelement>
      <mstyle scriptsizemultiplier="2">
        <munder>
          <mtext>O</mtext>
          <mtext>O</mtext>
        </munder>
        <mover>
          <mtext>O</mtext>
          <mtext>O</mtext>
        </mover>
        <munderover>
          <mtext>O</mtext>
          <mtext>O</mtext>
          <mtext>O</mtext>
        </munderover>
      </mstyle>
    </randomelement>

  </body>
</html>