mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
130 lines
3.8 KiB
HTML
130 lines
3.8 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>scriptlevel</title>
|
|
<meta charset="utf-8"/>
|
|
</head>
|
|
<body>
|
|
|
|
<!-- Test scriptlevel on mstyle -->
|
|
<math>
|
|
<mstyle>
|
|
<mtext>O</mtext>
|
|
<mstyle mathsize="200%"><mtext>O</mtext></mstyle>
|
|
</mstyle>
|
|
</math>
|
|
|
|
<!-- The mfrac element sets displaystyle to "false", or if it was already
|
|
false increments scriptlevel by 1, within numerator and denominator.
|
|
-->
|
|
<math>
|
|
<mstyle>
|
|
<mstyle displaystyle="false">
|
|
<mfrac>
|
|
<mtext mathsize="200%">O</mtext>
|
|
<mtext mathsize="200%">O</mtext>
|
|
</mfrac>
|
|
</mstyle>
|
|
<mstyle displaystyle="true">
|
|
<mfrac>
|
|
<mtext>O</mtext>
|
|
<mtext>O</mtext>
|
|
</mfrac>
|
|
</mstyle>
|
|
</mstyle>
|
|
</math>
|
|
|
|
<!-- 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. -->
|
|
<math>
|
|
<mstyle>
|
|
<mroot>
|
|
<mtext>O</mtext>
|
|
<mtext mathsize="400%">O</mtext>
|
|
</mroot>
|
|
<msqrt>
|
|
<mtext>O</mtext>
|
|
</msqrt>
|
|
</mstyle>
|
|
</math>
|
|
|
|
<!--
|
|
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.
|
|
-->
|
|
<math>
|
|
<mstyle>
|
|
<msub>
|
|
<mtext>O</mtext>
|
|
<mtext mathsize="200%">O</mtext>
|
|
</msub>
|
|
<msup>
|
|
<mtext>O</mtext>
|
|
<mtext mathsize="200%">O</mtext>
|
|
</msup>
|
|
<msubsup>
|
|
<mtext>O</mtext>
|
|
<mtext mathsize="200%">O</mtext>
|
|
<mtext mathsize="200%">O</mtext>
|
|
</msubsup>
|
|
<mmultiscripts>
|
|
<mtext>O</mtext>
|
|
<mtext mathsize="200%">O</mtext>
|
|
<mtext mathsize="200%">O</mtext>
|
|
<mprescripts/>
|
|
<mtext mathsize="200%">O</mtext>
|
|
<mtext mathsize="200%">O</mtext>
|
|
</mmultiscripts>
|
|
</mstyle>
|
|
</math>
|
|
|
|
<!--
|
|
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.
|
|
-->
|
|
<math>
|
|
<mstyle>
|
|
<munder>
|
|
<mtext>O</mtext>
|
|
<mtext mathsize="200%">O</mtext>
|
|
</munder>
|
|
<mover>
|
|
<mtext>O</mtext>
|
|
<mtext mathsize="200%">O</mtext>
|
|
</mover>
|
|
<munderover>
|
|
<mtext>O</mtext>
|
|
<mtext mathsize="200%">O</mtext>
|
|
<mtext mathsize="200%">O</mtext>
|
|
</munderover>
|
|
</mstyle>
|
|
</math>
|
|
|
|
</body>
|
|
</html>
|