layout/reftests/mathml/scriptlevel-1-ref.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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

mercurial