1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/mathml/menclose-2-top.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,35 @@ 1.4 +<!doctype html> 1.5 +<html class="reftest-wait"> 1.6 + <head> 1.7 + <title>menclose top</title> 1.8 + <meta charset="utf-8"/> 1.9 + <script type="text/javascript"> 1.10 + function doTest() 1.11 + { 1.12 + var box = document.getElementById("box").getBoundingClientRect(); 1.13 + document.getElementById("path").setAttribute("d", 1.14 + "M" + (box.left + "," + box.top) + " " + 1.15 + "l" + (box.width + "," + 0)); 1.16 + document.documentElement.removeAttribute("class"); 1.17 + } 1.18 + window.addEventListener("MozReftestInvalidate",doTest, false); 1.19 + </script> 1.20 + </head> 1.21 + <body> 1.22 + 1.23 + <div style="position: absolute; left: 20px; top: 20px;"> 1.24 + <math> 1.25 + <menclose id="box" notation="top"> 1.26 + <mspace width="200px" height="100px"></mspace> 1.27 + </menclose> 1.28 + </math> 1.29 + </div> 1.30 + 1.31 + <div style="position: absolute; left: 0px; top: 0px;"> 1.32 + <svg width="500px" height="500px"> 1.33 + <path id="path" style="fill: none; stroke-width: 3px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> 1.34 + </svg> 1.35 + </div> 1.36 + 1.37 + </body> 1.38 +</html>