displaystyle-011.html (6653B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>displaystyle</title> 5 <meta charset="utf-8"> 6 <link rel="help" href="https://w3c.github.io/mathml-core/#the-displaystyle-and-scriptlevel-attributes"> 7 <link rel="help" href="https://w3c.github.io/mathml-core/#style-change-mstyle"> 8 <link rel="help" href="https://w3c.github.io/mathml-core/#fractions-mfrac"> 9 <link rel="help" href="https://w3c.github.io/mathml-core/#radicals-msqrt-mroot"> 10 <link rel="help" href="https://w3c.github.io/mathml-core/#subscripts-and-superscripts-msub-msup-msubsup"> 11 <link rel="help" href="https://w3c.github.io/mathml-core/#underscripts-and-overscripts-munder-mover-munderover"> 12 <link rel="help" href="https://w3c.github.io/mathml-core/#prescripts-and-tensor-indices-mmultiscripts"> 13 <link rel="help" href="https://w3c.github.io/mathml-core/#table-or-matrix-mtable"> 14 <link rel="help" href="https://w3c.github.io/mathml-core/#operator-fence-separator-or-accent-mo"> 15 <link rel="match" href="displaystyle-011-ref.html"/> 16 <meta name="assert" content="Test the effect on displaystyle and movablelimits"> 17 <link rel="stylesheet" href="/fonts/ahem.css"> 18 <style> 19 math { 20 font: 25px Ahem; 21 } 22 </style> 23 </head> 24 <body> 25 26 <!-- Test displaystyle on mstyle --> 27 <math> 28 <mstyle displaystyle="true"> 29 <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> 30 </mstyle> 31 <mstyle displaystyle="false"> 32 <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> 33 </mstyle> 34 </math> 35 36 <!-- The mfrac element sets displaystyle to "false", or if it was already 37 false increments scriptlevel by 1, within numerator and denominator. 38 --> 39 <math> 40 <mstyle displaystyle="true"> 41 <mfrac> 42 <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> 43 <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> 44 </mfrac> 45 </mstyle> 46 </math> 47 48 <!-- The mroot element increments scriptlevel by 2, and sets 49 displaystyle to "false", within index, but leaves both attributes 50 unchanged within base. 51 The msqrt element leaves both attributes unchanged within its 52 argument. --> 53 <math> 54 <mstyle displaystyle="true"> 55 <mroot> 56 <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> 57 <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> 58 </mroot> 59 <msqrt> 60 <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> 61 </msqrt> 62 </mstyle> 63 </math> 64 65 <!-- 66 The msub element [...] increments scriptlevel by 1, and sets displaystyle to 67 "false", within subscript, but leaves both attributes unchanged within base. 68 69 The msup element [...] increments scriptlevel by 1, and sets displaystyle to 70 "false", within superscript, but leaves both attributes unchanged within 71 base. 72 73 The msubsup element [...] increments scriptlevel by 1, and sets displaystyle 74 to "false", within subscript and superscript, but leaves both attributes 75 unchanged within base. 76 77 The mmultiscripts element increments scriptlevel by 1, and sets displaystyle 78 to "false", within each of its arguments except base, but leaves both 79 attributes unchanged within base. 80 --> 81 <math> 82 <mstyle displaystyle="true"> 83 <msub> 84 <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> 85 <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> 86 </msub> 87 <msup> 88 <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> 89 <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> 90 </msup> 91 <msubsup> 92 <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> 93 <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> 94 <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> 95 </msubsup> 96 <mmultiscripts> 97 <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> 98 <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> 99 <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> 100 <mprescripts/> 101 <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> 102 <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> 103 </mmultiscripts> 104 </mstyle> 105 </math> 106 107 <!-- 108 The munder element [...] always sets displaystyle to "false" within the 109 underscript, but increments scriptlevel by 1 only when accentunder is 110 "false". Within base, it always leaves both attributes unchanged. 111 112 The mover element [...] always sets displaystyle to "false" within 113 overscript, but increments scriptlevel by 1 only when accent is "false". 114 Within base, it always leaves both attributes unchanged. 115 116 The munderover [..] always sets displaystyle to "false" within underscript 117 and overscript, but increments scriptlevel by 1 only when accentunder or 118 accent, respectively, are "false". Within base, it always leaves both 119 attributes unchanged. 120 --> 121 <math> 122 <mstyle displaystyle="true"> 123 <munder> 124 <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> 125 <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> 126 </munder> 127 <mover> 128 <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> 129 <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> 130 </mover> 131 <munderover> 132 <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> 133 <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> 134 <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> 135 </munderover> 136 </mstyle> 137 </math> 138 139 <!-- 140 The displaystyle attribute is allowed on the mtable element to set the 141 inherited value of the attribute. If the attribute is not present, the 142 mtable element sets displaystyle to "false" within the table elements. 143 --> 144 <math> 145 <mstyle displaystyle="false"> 146 <mtable displaystyle="true"> 147 <mtr> 148 <mtd> 149 <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> 150 </mtd> 151 </mtr> 152 </mtable> 153 </mstyle> 154 <mstyle displaystyle="true"> 155 <mtable> 156 <mtr> 157 <mtd> 158 <munder><mo movablelimits="true">O</mo><mo>O</mo></munder> 159 </mtd> 160 </mtr> 161 </mtable> 162 </mstyle> 163 </math> 164 165 <script src="/mathml/support/feature-detection.js"></script> 166 <script>MathMLFeatureDetection.ensure_for_match_reftest("has_movablelimits");</script> 167 </body> 168 </html>