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