Debian Codegraph @

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

raw
1 <!DOCTYPE html>
2 <html class="reftest-wait">
3 <head>
4 <title>menclose updiagonalarrow</title>
5 <meta charset="utf-8"/>
6 <link rel="match" href="menclose-2-updiagonalarrow-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 document.getElementById("path").setAttribute("d",
18 "M" + (box.left + "," + (box.height + box.top)) +
19 "L" + ((box.width + box.left) + "," + box.top) +
20 "l -15,0 l0,+15 l+15,0 l0,-15"); // try and hide the arrow head with a square.
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 <menclose id="box" notation="updiagonalarrow">
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 <path id="path" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path>
39 </svg>
40 </div>
41
42 </body>
43 </html>