mstyle-3.xhtml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <?xml version="1.0" encoding="us-ascii"?>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="content-type"
  5. content="application/xhtml+xml; charset=us-ascii" />
  6. <title>Test mstyle</title>
  7. <style type="text/css">
  8. table { width: 100%; border-collapse: collapse; }
  9. td { border: solid black 1px; }
  10. </style>
  11. </head>
  12. <body>
  13. <!-- The attributes below (except math@display) should no longer have effect on
  14. <mstyle>/<math> elements. See bug 838509 -->
  15. <table>
  16. <tbody>
  17. <tr>
  18. <td>mo: form</td>
  19. <td><math xmlns="http://www.w3.org/1998/Math/MathML" form="postfix">
  20. <mstyle form="postfix">
  21. <mrow>
  22. <!-- We assume that the infix/postfix forms of _ do -->
  23. <!-- not have the same lspace/rspace values in the operator dictionary -->
  24. <mtext>_</mtext>
  25. <mo>_</mo>
  26. <mtext>_</mtext>
  27. </mrow>
  28. </mstyle>
  29. </math></td>
  30. </tr>
  31. <tr>
  32. <td>mo: lspace, rspace</td>
  33. <td><math xmlns="http://www.w3.org/1998/Math/MathML" lspace="0" rspace="0">
  34. <mstyle lspace="0" rspace="0">
  35. <mrow>
  36. <!-- We assume that the infix form of _ has -->
  37. <!-- nonzero lspace/rspace values in the operator dictionary -->
  38. <mtext>_</mtext>
  39. <mo>_</mo>
  40. <mtext>_</mtext>
  41. </mrow>
  42. </mstyle>
  43. </math></td>
  44. </tr>
  45. <tr>
  46. <td>mo: stretchy</td>
  47. <td><math xmlns="http://www.w3.org/1998/Math/MathML" stretchy="false">
  48. <mstyle stretchy="false">
  49. <mover>
  50. <!-- We assume that the arrow has stretchy=true in the operator dictionary -->
  51. <mtext>abcd</mtext>
  52. <mo>&#x2192;</mo>
  53. </mover>
  54. </mstyle>
  55. </math></td>
  56. </tr>
  57. <tr>
  58. <td>mo: accent</td>
  59. <td><math xmlns="http://www.w3.org/1998/Math/MathML" accent="false">
  60. <mstyle accent="false">
  61. <mover>
  62. <!-- We assume &#x23de; has accent=true in the operator dictionary -->
  63. <mrow>
  64. <mi>x</mi>
  65. <mo>+</mo>
  66. <mi>y</mi>
  67. <mo>+</mo>
  68. <mi>z</mi>
  69. </mrow>
  70. <mo>&#x23de;</mo>
  71. </mover>
  72. </mstyle>
  73. </math></td>
  74. </tr>
  75. <tr>
  76. <td>mo: maxsize</td>
  77. <td><math xmlns="http://www.w3.org/1998/Math/MathML" maxsize="1">
  78. <mstyle maxsize="1">
  79. <mo>(</mo>
  80. <mspace height="3em"/>
  81. </mstyle>
  82. </math></td>
  83. </tr>
  84. <tr>
  85. <td>mo: minsize</td>
  86. <td><math xmlns="http://www.w3.org/1998/Math/MathML" minsize="3">
  87. <mstyle minsize="3">
  88. <mo>(</mo>
  89. <mspace height="1em"/>
  90. </mstyle>
  91. </math></td>
  92. </tr>
  93. <tr>
  94. <td>mo: symmetric</td>
  95. <td><math xmlns="http://www.w3.org/1998/Math/MathML" symmetric="false">
  96. <!-- We assume that ( has symmetric=true in the operator dictionary -->
  97. <mstyle symmetric="false">
  98. <mtext>_</mtext>
  99. <mo minsize="2">(</mo>
  100. <mtext>_</mtext>
  101. </mstyle>
  102. </math></td>
  103. </tr>
  104. <tr>
  105. <td>mo: movablelimits</td>
  106. <td><math xmlns="http://www.w3.org/1998/Math/MathML" movablelimits="false">
  107. <!-- We assume that &#x2211; has movablelimits=true in the operator dictionary -->
  108. <mstyle movablelimits="false">
  109. <munderover>
  110. <mo>&#x2211;</mo>
  111. <mi>a</mi>
  112. <mi>b</mi>
  113. </munderover>
  114. </mstyle>
  115. </math></td>
  116. </tr>
  117. <tr>
  118. <td>mo: largeop</td>
  119. <td><math xmlns="http://www.w3.org/1998/Math/MathML" display="block" largeop="false">
  120. <!-- We assume that &#x2211; has largeop=true in the operator dictionary -->
  121. <mstyle largeop="false">
  122. <mo>&#x2211;</mo>
  123. </mstyle>
  124. </math></td>
  125. </tr>
  126. <!--
  127. fence: This attribute generally has no direct effect on the visual rendering.
  128. separator: This attribute generally has no direct effect on the visual rendering.
  129. -->
  130. </tbody>
  131. </table>
  132. </body>
  133. </html>