Debian Codegraph @

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

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