Debian Codegraph @

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

raw
1 <!DOCTYPE html>
2 <html class="reftest-wait">
3 <head>
4 <title>menclose phasorangle</title>
5 <meta charset="utf-8"/>
6 <link rel="match" href="menclose-2-phasorangle-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("box").getBoundingClientRect();
17 var w = 8 * 2; // kPhasorangleWidth * rulethickness
18 var H = 2 * w; // slope 2
19
20 document.getElementById("path").setAttribute("d",
21 "M" + (box.right + "," + box.bottom) +
22 "L" + (box.left + "," + box.bottom ) +
23 "l" + ((w) + "," + (-H)));
24 document.documentElement.removeAttribute("class");
25 }
26 document.documentElement.addEventListener("TestRendered", doTest);
27 </script>
28 </head>
29 <body>
30
31 <div style="position: absolute; left: 20px; top: 20px;">
32 <math>
33 <menclose id="box" notation="phasorangle">
34 <mspace width="200px" height="100px"></mspace>
35 </menclose>
36 </math>
37 </div>
38
39 <div style="position: absolute; left: 0px; top: 0px;">
40 <svg width="500px" height="500px">
41 <path id="path" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path>
42 </svg>
43 </div>
44
45 </body>
46 </html>