Debian Codegraph @

testing/web-platform/mozilla/tests/mathml/menclose/menclose-2-longdiv-ref.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="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 var x = " " + box.left + "," + box.top + " " ;
17 document.getElementById("path").setAttribute("d",
18 "M" + (box.left + "," + (box.top + box.height)) +
19 "Q" + ((box.left + 15) + "," + (box.top + box.height)/2) + x +
20 "L" + ((box.left + box.width) + "," + box.top));
21 document.documentElement.removeAttribute("class");
22 }
23 document.documentElement.addEventListener("TestRendered",doTest);
24 </script>
25 </head>
26 <body>
27
28 <div style="position: absolute; left: 20px; top: 20px;">
29 <math>
30 <mphantom>
31 <menclose id="box" notation="longdiv">
32 <mspace width="200px" height="100px"></mspace>
33 </menclose>
34 </mphantom>
35 </math>
36 </div>
37
38 <div style="position: absolute; left: 0px; top: 0px;">
39 <svg width="500px" height="500px">
40 <path id="path" style="fill: none; stroke-width: 1em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path>
41 </svg>
42 </div>
43
44 </body>
45 </html>