layout/reftests/mathml/menclose-2-circle.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 circle</title>
     5     <meta charset="utf-8"/>
     6     <script type="text/javascript">
     7       function doTest()
     8       {
     9         var box = document.getElementById("circle").getBoundingClientRect();
    10         e = document.getElementById("ellipse");
    11         e.setAttribute("cx", (box.left + box.width/2));
    12         e.setAttribute("rx", (box.width/2));
    13         e.setAttribute("cy", (box.top + box.height/2));
    14         e.setAttribute("ry", (box.height/2));
    15         document.documentElement.removeAttribute("class");
    16       }
    17       window.addEventListener("MozReftestInvalidate",doTest, false);
    18     </script>
    19   </head>
    20   <body>
    21     <div style="position: absolute; left: 20px; top: 20px;">
    22       <math>
    23         <menclose id="circle" notation="circle">
    24           <mspace width="200px" height="100px"></mspace>
    25         </menclose>
    26       </math>
    27     </div>
    29     <div style="position: absolute; left: 0px; top: 0px;">
    30       <svg width="500px" height="500px">
    31          <ellipse id="ellipse" style="fill: none; stroke-width: 8px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></ellipse>
    32       </svg>
    33     </div>
    35   </body>
    36 </html>

mercurial