menclose-2-bottom.html (1387B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <head> 4 <title>menclose bottom</title> 5 <meta charset="utf-8"/> 6 <link rel="match" href="menclose-2-bottom-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.top + box.height)) + " " + 19 "l" + (box.width + "," + 0)); 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 <menclose id="box" notation="bottom"> 30 <mspace width="200px" height="100px"></mspace> 31 </menclose> 32 </math> 33 </div> 34 35 <div style="position: absolute; left: 0px; top: 0px;"> 36 <svg width="500px" height="500px"> 37 <path id="path" style="fill: none; stroke-width: .5em; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> 38 </svg> 39 </div> 40 41 </body> 42 </html>