scriptlevel-1.html 3.7 KB

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