menclose-2-updiagonalarrow-ref.html (1539B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <head> 4 <title>menclose updiagonalarrow</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.height + box.top)) + 18 "L" + ((box.width + box.left) + "," + box.top) + 19 "l -15,0 l0,+15 l+15,0 l0,-15"); // try and hide the arrow head with a square. 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="updiagonalarrow"> 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>