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

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     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           <menclose id="box" notation="box">
    25             <mspace width="200px" height="100px"></mspace>
    26           </menclose>
    27       </math>
    28     </div>
    30     <div style="position: absolute; left: 0px; top: 0px;">
    31       <svg width="500px" height="500px">
    32           <rect id="rect" style="fill: none; stroke-width: 3px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></rect>
    33       </svg>
    34     </div>
    36   </body>
    37 </html>

mercurial