layout/reftests/mathml/menclose-2-box-ref.html

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 <!doctype html>
     2 <html class="reftest-wait">
     3   <head>
     4     <title>menclose box</title>
     5     <meta charset="utf-8"/>
     6     <script type="text/javascript">
     7       function doTest()
     8       {
     9         var box = document.getElementById("box").getBoundingClientRect();
    10         r = document.getElementById("rect");
    11         r.setAttribute("x", box.left );
    12         r.setAttribute("y", box.top );
    13         r.setAttribute("width", box.width );
    14         r.setAttribute("height", box.height );
    15         document.documentElement.removeAttribute("class");
    16       }
    17       window.addEventListener("MozReftestInvalidate",doTest, false);
    18     </script>
    19   </head>
    21   <body>
    22     <div style="position: absolute; left: 20px; top: 20px;">
    23       <math>
    24         <mphantom>
    25           <menclose id="box" notation="box">
    26             <mspace width="200px" height="100px"></mspace>
    27           </menclose>
    28         </mphantom>
    29       </math>
    30     </div>
    32     <div style="position: absolute; left: 0px; top: 0px;">
    33       <svg width="500px" height="500px">
    34           <rect id="rect" style="fill: none; stroke-width: 3px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></rect>
    35       </svg>
    36     </div>
    38   </body>
    39 </html>

mercurial