Debian Codegraph @

testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-circle.html

raw
1 <!DOCTYPE html>
2 <html class="reftest-wait">
3 <head>
4 <title>menclose circle</title>
5 <meta charset="utf-8"/>
6 <link rel="match" href="menclose-2-circle-ref.html"/>
7 <link rel="stylesheet" href="/fonts/ahem.css" />
8 <style>
9 math, svg {
10 font: 25px/1 Ahem;
11 }
12 </style>
13 <script type="text/javascript">
14 function doTest()
15 {
16 var box = document.getElementById("circle").getBoundingClientRect();
17 e = document.getElementById("ellipse");
18 e.setAttribute("cx", (box.left + box.width/2));
19 e.setAttribute("rx", (box.width/2));
20 e.setAttribute("cy", (box.top + box.height/2));
21 e.setAttribute("ry", (box.height/2));
22 document.documentElement.removeAttribute("class");
23 }
24 document.documentElement.addEventListener("TestRendered",doTest);
25 </script>
26 </head>
27 <body>
28 <div style="position: absolute; left: 20px; top: 20px;">
29 <math>
30 <menclose id="circle" notation="circle">
31 <mspace width="200px" height="100px"></mspace>
32 </menclose>
33 </math>
34 </div>
35
36 <div style="position: absolute; left: 0px; top: 0px;">
37 <svg width="500px" height="500px">
38 <ellipse id="ellipse" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></ellipse>
39 </svg>
40 </div>
41
42 </body>
43 </html>