Debian Codegraph @

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

raw
1 <!DOCTYPE html>
2 <html class="reftest-wait">
3 <head>
4 <title>menclose longdiv</title>
5 <meta charset="utf-8"/>
6 <link rel="match" href="menclose-2-longdiv-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 x = " " + box.left + "," + box.top + " " ;
18 document.getElementById("path").setAttribute("d",
19 "M" + (box.left + "," + (box.top + box.height)) +
20 "Q" + ((box.left + 15) + "," + (box.top + box.height)/2) + x +
21 "L" + ((box.left + box.width) + "," + box.top));
22 document.documentElement.removeAttribute("class");
23 }
24 document.documentElement.addEventListener("TestRendered",doTest);
25 </script>
26 </head>
27 <body>
28
29 <div style="position: absolute; left: 20px; top: 20px;">
30 <math>
31 <menclose id="box" notation="longdiv">
32 <mspace width="200px" height="100px"></mspace>
33 </menclose>
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: 1em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path>
40 </svg>
41 </div>
42
43 </body>
44 </html>