Debian Codegraph @

testing/web-platform/mozilla/tests/mathml/disabled/disabled-scriptlevel-1.xhtml

raw
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head>
3 <title>scriptlevel</title>
4 <meta charset="utf-8"/>
5 <link rel="match" href="disabled-scriptlevel-1-ref.xhtml"/>
6 <style>
7 h2 {
8 text-align:center;
9 }
10 </style>
11 </head>
12 <body>
13
14 <!-- Test scriptlevel on mstyle -->
15 <math xmlns="http://www.w3.org/1998/Math/MathML">
16 <mstyle scriptsizemultiplier="2">
17 <mtext>O</mtext>
18 <mstyle scriptlevel="1"><mtext>O</mtext></mstyle>
19 </mstyle>
20 </math>
21
22 <!-- The mfrac element sets displaystyle to "false", or if it was already
23 false increments scriptlevel by 1, within numerator and denominator.
24 -->
25 <math xmlns="http://www.w3.org/1998/Math/MathML">
26 <mstyle scriptsizemultiplier="2">
27 <mstyle displaystyle="false">
28 <mfrac>
29 <mtext>O</mtext>
30 <mtext>O</mtext>
31 </mfrac>
32 </mstyle>
33 <mstyle displaystyle="true">
34 <mfrac>
35 <mtext>O</mtext>
36 <mtext>O</mtext>
37 </mfrac>
38 </mstyle>
39 </mstyle>
40 </math>
41
42 <!-- The mroot element increments scriptlevel by 2, and sets
43 displaystyle to "false", within index, but leaves both attributes
44 unchanged within base.
45 The msqrt element leaves both attributes unchanged within its
46 argument. -->
47 <math xmlns="http://www.w3.org/1998/Math/MathML">
48 <mstyle scriptsizemultiplier="2">
49 <mroot>
50 <mtext>O</mtext>
51 <mtext>O</mtext>
52 </mroot>
53 <msqrt>
54 <mtext>O</mtext>
55 </msqrt>
56 </mstyle>
57 </math>
58
59 <!--
60 The msub element [...] increments scriptlevel by 1, and sets displaystyle to
61 "false", within subscript, but leaves both attributes unchanged within base.
62
63 The msup element [...] increments scriptlevel by 1, and sets displaystyle to
64 "false", within superscript, but leaves both attributes unchanged within
65 base.
66
67 The msubsup element [...] increments scriptlevel by 1, and sets displaystyle
68 to "false", within subscript and superscript, but leaves both attributes
69 unchanged within base.
70
71 The mmultiscripts element increments scriptlevel by 1, and sets displaystyle
72 to "false", within each of its arguments except base, but leaves both
73 attributes unchanged within base.
74 -->
75 <math xmlns="http://www.w3.org/1998/Math/MathML">
76 <mstyle scriptsizemultiplier="2">
77 <msub>
78 <mtext>O</mtext>
79 <mtext>O</mtext>
80 </msub>
81 <msup>
82 <mtext>O</mtext>
83 <mtext>O</mtext>
84 </msup>
85 <msubsup>
86 <mtext>O</mtext>
87 <mtext>O</mtext>
88 <mtext>O</mtext>
89 </msubsup>
90 <mmultiscripts>
91 <mtext>O</mtext>
92 <mtext>O</mtext>
93 <mtext>O</mtext>
94 <mprescripts/>
95 <mtext>O</mtext>
96 <mtext>O</mtext>
97 </mmultiscripts>
98 </mstyle>
99 </math>
100
101 <!--
102 The munder element [...] always sets displaystyle to "false" within the
103 underscript, but increments scriptlevel by 1 only when accentunder is
104 "false". Within base, it always leaves both attributes unchanged.
105
106 The mover element [...] always sets displaystyle to "false" within
107 overscript, but increments scriptlevel by 1 only when accent is "false".
108 Within base, it always leaves both attributes unchanged.
109
110 The munderover [..] always sets displaystyle to "false" within underscript
111 and overscript, but increments scriptlevel by 1 only when accentunder or
112 accent, respectively, are "false". Within base, it always leaves both
113 attributes unchanged.
114 -->
115 <math xmlns="http://www.w3.org/1998/Math/MathML">
116 <mstyle scriptsizemultiplier="2">
117 <munder>
118 <mtext>O</mtext>
119 <mtext>O</mtext>
120 </munder>
121 <mover>
122 <mtext>O</mtext>
123 <mtext>O</mtext>
124 </mover>
125 <munderover>
126 <mtext>O</mtext>
127 <mtext>O</mtext>
128 <mtext>O</mtext>
129 </munderover>
130 </mstyle>
131 </math>
132
133 </body>
134 </html>