Debian Codegraph @

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

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