layout/reftests/mathml/menclose-2-circle-ref.html

branch
TOR_BUG_9701
changeset 10
ac0c01689b40
equal deleted inserted replaced
-1:000000000000 0:29e7dca59464
1 <!doctype html>
2 <html class="reftest-wait">
3 <head>
4 <title>menclose circle</title>
5 <meta charset="utf-8"/>
6 <script type="text/javascript">
7 function doTest()
8 {
9 var box = document.getElementById("circle").getBoundingClientRect();
10 e = document.getElementById("ellipse");
11 e.setAttribute("cx", (box.left + box.width/2));
12 e.setAttribute("rx", (box.width/2));
13 e.setAttribute("cy", (box.top + box.height/2));
14 e.setAttribute("ry", (box.height/2));
15 document.documentElement.removeAttribute("class");
16 }
17 window.addEventListener("MozReftestInvalidate",doTest, false);
18 </script>
19 </head>
20 <body>
21 <div style="position: absolute; left: 20px; top: 20px;">
22 <math>
23 <mphantom>
24 <menclose id="circle" notation="circle">
25 <mspace width="200px" height="100px"></mspace>
26 </menclose>
27 </mphantom>
28 </math>
29 </div>
30
31 <div style="position: absolute; left: 0px; top: 0px;">
32 <svg width="500px" height="500px">
33 <ellipse id="ellipse" style="fill: none; stroke-width: 8px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></ellipse>
34 </svg>
35 </div>
36
37 </body>
38 </html>

mercurial