1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/mathml/displaystyle-1-ref.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,149 @@ 1.4 +<!doctype html> 1.5 +<html> 1.6 + <head> 1.7 + <title>displaystyle</title> 1.8 + <meta charset="utf-8"/> 1.9 + </head> 1.10 + <body> 1.11 + 1.12 + <!-- Test displaystyle on mstyle --> 1.13 + <math> 1.14 + <mstyle displaystyle="true"> 1.15 + <munder><mo>O</mo><mo>O</mo></munder> 1.16 + </mstyle> 1.17 + <mstyle displaystyle="false"> 1.18 + <msub><mo>O</mo><mo>O</mo></munder> 1.19 + </mstyle> 1.20 + </math> 1.21 + 1.22 + <!-- The mfrac element sets displaystyle to "false", or if it was already 1.23 + false increments scriptlevel by 1, within numerator and denominator. 1.24 + --> 1.25 + <math> 1.26 + <mstyle displaystyle="true"> 1.27 + <mfrac> 1.28 + <msub><mo>O</mo><mo>O</mo></msub> 1.29 + <msub><mo>O</mo><mo>O</mo></msub> 1.30 + </mfrac> 1.31 + </mstyle> 1.32 + </math> 1.33 + 1.34 + <!-- The mroot element increments scriptlevel by 2, and sets 1.35 + displaystyle to "false", within index, but leaves both attributes 1.36 + unchanged within base. 1.37 + The msqrt element leaves both attributes unchanged within its 1.38 + argument. --> 1.39 + <math> 1.40 + <mstyle displaystyle="true"> 1.41 + <mroot> 1.42 + <munder><mo>O</mo><mo>O</mo></munder> 1.43 + <msub><mo>O</mo><mo>O</mo></msub> 1.44 + </mroot> 1.45 + <msqrt> 1.46 + <munder><mo>O</mo><mo>O</mo></munder> 1.47 + </msqrt> 1.48 + </mstyle> 1.49 + </math> 1.50 + 1.51 +<!-- 1.52 + The msub element [...] increments scriptlevel by 1, and sets displaystyle to 1.53 + "false", within subscript, but leaves both attributes unchanged within base. 1.54 + 1.55 + The msup element [...] increments scriptlevel by 1, and sets displaystyle to 1.56 + "false", within superscript, but leaves both attributes unchanged within 1.57 + base. 1.58 + 1.59 + The msubsup element [...] increments scriptlevel by 1, and sets displaystyle 1.60 + to "false", within subscript and superscript, but leaves both attributes 1.61 + unchanged within base. 1.62 + 1.63 + The mmultiscripts element increments scriptlevel by 1, and sets displaystyle 1.64 + to "false", within each of its arguments except base, but leaves both 1.65 + attributes unchanged within base. 1.66 + --> 1.67 + <math> 1.68 + <mstyle displaystyle="true"> 1.69 + <msub> 1.70 + <munder><mo>O</mo><mo>O</mo></munder> 1.71 + <msub><mo>O</mo><mo>O</mo></msub> 1.72 + </msub> 1.73 + <msup> 1.74 + <munder><mo>O</mo><mo>O</mo></munder> 1.75 + <msub><mo>O</mo><mo>O</mo></msub> 1.76 + </msup> 1.77 + <msubsup> 1.78 + <munder><mo>O</mo><mo>O</mo></munder> 1.79 + <msub><mo>O</mo><mo>O</mo></msub> 1.80 + <msub><mo>O</mo><mo>O</mo></msub> 1.81 + </msubsup> 1.82 + <mmultiscripts> 1.83 + <munder><mo>O</mo><mo>O</mo></munder> 1.84 + <msub><mo>O</mo><mo>O</mo></msub> 1.85 + <msub><mo>O</mo><mo>O</mo></msub> 1.86 + <mprescripts/> 1.87 + <msub><mo>O</mo><mo>O</mo></msub> 1.88 + <msub><mo>O</mo><mo>O</mo></msub> 1.89 + </mmultiscripts> 1.90 + </mstyle> 1.91 + </math> 1.92 + 1.93 +<!-- 1.94 + The munder element [...] always sets displaystyle to "false" within the 1.95 + underscript, but increments scriptlevel by 1 only when accentunder is 1.96 + "false". Within base, it always leaves both attributes unchanged. 1.97 + 1.98 + The mover element [...] always sets displaystyle to "false" within 1.99 + overscript, but increments scriptlevel by 1 only when accent is "false". 1.100 + Within base, it always leaves both attributes unchanged. 1.101 + 1.102 + The munderover [..] always sets displaystyle to "false" within underscript 1.103 + and overscript, but increments scriptlevel by 1 only when accentunder or 1.104 + accent, respectively, are "false". Within base, it always leaves both 1.105 + attributes unchanged. 1.106 +--> 1.107 + <math> 1.108 + <mstyle displaystyle="true"> 1.109 + <munder> 1.110 + <munder><mo>O</mo><mo>O</mo></munder> 1.111 + <msub><mo>O</mo><mo>O</mo></msub> 1.112 + </munder> 1.113 + <mover> 1.114 + <munder><mo>O</mo><mo>O</mo></munder> 1.115 + <msub><mo>O</mo><mo>O</mo></msub> 1.116 + </mover> 1.117 + <munderover> 1.118 + <munder><mo>O</mo><mo>O</mo></munder> 1.119 + <msub><mo>O</mo><mo>O</mo></msub> 1.120 + <msub><mo>O</mo><mo>O</mo></msub> 1.121 + </munderover> 1.122 + </mstyle> 1.123 + </math> 1.124 + 1.125 +<!-- 1.126 + The displaystyle attribute is allowed on the mtable element to set the 1.127 + inherited value of the attribute. If the attribute is not present, the 1.128 + mtable element sets displaystyle to "false" within the table elements. 1.129 +--> 1.130 + <math> 1.131 + <mstyle displaystyle="false"> 1.132 + <mtable displaystyle="true"> 1.133 + <mtr> 1.134 + <mtd> 1.135 + <munder><mo>O</mo><mo>O</mo></munder> 1.136 + </mtd> 1.137 + </mtr> 1.138 + </mtable> 1.139 + </mstyle> 1.140 + <mstyle displaystyle="true"> 1.141 + <mtable> 1.142 + <mtr> 1.143 + <mtd> 1.144 + <msub><mo>O</mo><mo>O</mo></msub> 1.145 + </mtd> 1.146 + </mtr> 1.147 + </mtable> 1.148 + </mstyle> 1.149 + </math> 1.150 + 1.151 + </body> 1.152 +</html>