1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/mathml/mtable-rowalign-single-mtable-dynamic.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,146 @@ 1.4 +<!DOCTYPE> 1.5 +<html class="reftest-wait"> 1.6 + <head> 1.7 + <title>Test MathML rowalign</title> 1.8 + <script type="text/javascript"> 1.9 + function doTest() 1.10 + { 1.11 + var table1 = document.getElementById("table1"); 1.12 + var table2 = document.getElementById("table2"); 1.13 + var table3 = document.getElementById("table3"); 1.14 + 1.15 + // Table 1 setup 1.16 + table1.setAttribute("rowalign", "top"); 1.17 + // Table 2 setup 1.18 + table2.setAttribute("rowalign", "center"); 1.19 + // Table 3 setup 1.20 + table3.setAttribute("rowalign", "bottom"); 1.21 + 1.22 + document.documentElement.removeAttribute("class"); 1.23 + } 1.24 + window.addEventListener("MozReftestInvalidate", doTest, false); 1.25 + </script> 1.26 + </head> 1.27 + <body> 1.28 + <b>rowalign="top"</b> <br/> 1.29 + <math> 1.30 + <mstyle> 1.31 + <mtable id="table1"> 1.32 + <mtr> 1.33 + <mtd> 1.34 + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> 1.35 + </mtd> 1.36 + <mtd> 1.37 + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> 1.38 + </mtd> 1.39 + <mtd> 1.40 + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> 1.41 + </mtd> 1.42 + </mtr> 1.43 + <mtr> 1.44 + <mtd> 1.45 + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> 1.46 + </mtd> 1.47 + <mtd> 1.48 + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> 1.49 + </mtd> 1.50 + <mtd> 1.51 + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> 1.52 + </mtd> 1.53 + </mtr> 1.54 + <mtr> 1.55 + <mtd> 1.56 + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> 1.57 + </mtd> 1.58 + <mtd> 1.59 + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> 1.60 + </mtd> 1.61 + <mtd> 1.62 + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> 1.63 + </mtd> 1.64 + </mtr> 1.65 + </mtable> 1.66 + </mstyle> 1.67 + </math> <br /> 1.68 + <b>rowalign="center"</b> <br /> 1.69 + <math> 1.70 + <mstyle> 1.71 + <mtable id="table2"> 1.72 + <mtr> 1.73 + <mtd> 1.74 + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> 1.75 + </mtd> 1.76 + <mtd> 1.77 + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> 1.78 + </mtd> 1.79 + <mtd> 1.80 + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> 1.81 + </mtd> 1.82 + </mtr> 1.83 + <mtr> 1.84 + <mtd> 1.85 + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> 1.86 + </mtd> 1.87 + <mtd> 1.88 + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> 1.89 + </mtd> 1.90 + <mtd> 1.91 + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> 1.92 + </mtd> 1.93 + </mtr> 1.94 + <mtr> 1.95 + <mtd> 1.96 + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> 1.97 + </mtd> 1.98 + <mtd> 1.99 + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> 1.100 + </mtd> 1.101 + <mtd> 1.102 + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> 1.103 + </mtd> 1.104 + </mtr> 1.105 + </mtable> 1.106 + </mstyle> 1.107 + </math> <br /> 1.108 + <b>rowalign="bottom"</b> <br /> 1.109 + <math> 1.110 + <mstyle> 1.111 + <mtable id="table3"> 1.112 + <mtr> 1.113 + <mtd> 1.114 + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> 1.115 + </mtd> 1.116 + <mtd> 1.117 + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> 1.118 + </mtd> 1.119 + <mtd> 1.120 + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> 1.121 + </mtd> 1.122 + </mtr> 1.123 + <mtr> 1.124 + <mtd> 1.125 + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> 1.126 + </mtd> 1.127 + <mtd> 1.128 + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> 1.129 + </mtd> 1.130 + <mtd> 1.131 + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> 1.132 + </mtd> 1.133 + </mtr> 1.134 + <mtr> 1.135 + <mtd> 1.136 + <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace> 1.137 + </mtd> 1.138 + <mtd> 1.139 + <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace> 1.140 + </mtd> 1.141 + <mtd> 1.142 + <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace> 1.143 + </mtd> 1.144 + </mtr> 1.145 + </mtable> 1.146 + </mstyle> 1.147 + </math> 1.148 + </body> 1.149 +</html>