1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/mathml/mstyle-3.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,136 @@ 1.4 +<?xml version="1.0" encoding="us-ascii"?> 1.5 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.6 +<head> 1.7 + <meta http-equiv="content-type" 1.8 + content="application/xhtml+xml; charset=us-ascii" /> 1.9 + <title>Test mstyle</title> 1.10 + <style type="text/css"> 1.11 + table { width: 100%; border-collapse: collapse; } 1.12 + td { border: solid black 1px; } 1.13 + </style> 1.14 +</head> 1.15 + 1.16 +<body> 1.17 + 1.18 +<!-- The attributes below (except math@display) should no longer have effect on 1.19 + <mstyle>/<math> elements. See bug 838509 --> 1.20 + 1.21 +<table> 1.22 + <tbody> 1.23 + <tr> 1.24 + <td>mo: form</td> 1.25 + <td><math xmlns="http://www.w3.org/1998/Math/MathML" form="postfix"> 1.26 + <mstyle form="postfix"> 1.27 + <mrow> 1.28 + <!-- We assume that the infix/postfix forms of _ do --> 1.29 + <!-- not have the same lspace/rspace values in the operator dictionary --> 1.30 + <mtext>_</mtext> 1.31 + <mo>_</mo> 1.32 + <mtext>_</mtext> 1.33 + </mrow> 1.34 + </mstyle> 1.35 + </math></td> 1.36 + </tr> 1.37 + <tr> 1.38 + <td>mo: lspace, rspace</td> 1.39 + <td><math xmlns="http://www.w3.org/1998/Math/MathML" lspace="0" rspace="0"> 1.40 + <mstyle lspace="0" rspace="0"> 1.41 + <mrow> 1.42 + <!-- We assume that the infix form of _ has --> 1.43 + <!-- nonzero lspace/rspace values in the operator dictionary --> 1.44 + <mtext>_</mtext> 1.45 + <mo>_</mo> 1.46 + <mtext>_</mtext> 1.47 + </mrow> 1.48 + </mstyle> 1.49 + </math></td> 1.50 + </tr> 1.51 + <tr> 1.52 + <td>mo: stretchy</td> 1.53 + <td><math xmlns="http://www.w3.org/1998/Math/MathML" stretchy="false"> 1.54 + <mstyle stretchy="false"> 1.55 + <mover> 1.56 + <!-- We assume that the arrow has stretchy=true in the operator dictionary --> 1.57 + <mtext>abcd</mtext> 1.58 + <mo>→</mo> 1.59 + </mover> 1.60 + </mstyle> 1.61 + </math></td> 1.62 + </tr> 1.63 + <tr> 1.64 + <td>mo: accent</td> 1.65 + <td><math xmlns="http://www.w3.org/1998/Math/MathML" accent="false"> 1.66 + <mstyle accent="false"> 1.67 + <mover> 1.68 + <!-- We assume ⏞ has accent=true in the operator dictionary --> 1.69 + <mrow> 1.70 + <mi>x</mi> 1.71 + <mo>+</mo> 1.72 + <mi>y</mi> 1.73 + <mo>+</mo> 1.74 + <mi>z</mi> 1.75 + </mrow> 1.76 + <mo>⏞</mo> 1.77 + </mover> 1.78 + </mstyle> 1.79 + </math></td> 1.80 + </tr> 1.81 + <tr> 1.82 + <td>mo: maxsize</td> 1.83 + <td><math xmlns="http://www.w3.org/1998/Math/MathML" maxsize="1"> 1.84 + <mstyle maxsize="1"> 1.85 + <mo>(</mo> 1.86 + <mspace height="3em"/> 1.87 + </mstyle> 1.88 + </math></td> 1.89 + </tr> 1.90 + <tr> 1.91 + <td>mo: minsize</td> 1.92 + <td><math xmlns="http://www.w3.org/1998/Math/MathML" minsize="3"> 1.93 + <mstyle minsize="3"> 1.94 + <mo>(</mo> 1.95 + <mspace height="1em"/> 1.96 + </mstyle> 1.97 + </math></td> 1.98 + </tr> 1.99 + <tr> 1.100 + <td>mo: symmetric</td> 1.101 + <td><math xmlns="http://www.w3.org/1998/Math/MathML" symmetric="false"> 1.102 + <!-- We assume that ( has symmetric=true in the operator dictionary --> 1.103 + <mstyle symmetric="false"> 1.104 + <mtext>_</mtext> 1.105 + <mo minsize="2">(</mo> 1.106 + <mtext>_</mtext> 1.107 + </mstyle> 1.108 + </math></td> 1.109 + </tr> 1.110 + <tr> 1.111 + <td>mo: movablelimits</td> 1.112 + <td><math xmlns="http://www.w3.org/1998/Math/MathML" movablelimits="false"> 1.113 + <!-- We assume that ∑ has movablelimits=true in the operator dictionary --> 1.114 + <mstyle movablelimits="false"> 1.115 + <munderover> 1.116 + <mo>∑</mo> 1.117 + <mi>a</mi> 1.118 + <mi>b</mi> 1.119 + </munderover> 1.120 + </mstyle> 1.121 + </math></td> 1.122 + </tr> 1.123 + <tr> 1.124 + <td>mo: largeop</td> 1.125 + <td><math xmlns="http://www.w3.org/1998/Math/MathML" display="block" largeop="false"> 1.126 + <!-- We assume that ∑ has largeop=true in the operator dictionary --> 1.127 + <mstyle largeop="false"> 1.128 + <mo>∑</mo> 1.129 + </mstyle> 1.130 + </math></td> 1.131 + </tr> 1.132 + <!-- 1.133 + fence: This attribute generally has no direct effect on the visual rendering. 1.134 + separator: This attribute generally has no direct effect on the visual rendering. 1.135 + --> 1.136 + </tbody> 1.137 +</table> 1.138 +</body> 1.139 +</html>