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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/mathml/menclose-2-circle-ref.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,38 @@
     1.4 +<!doctype html>
     1.5 +<html class="reftest-wait">
     1.6 +  <head>
     1.7 +    <title>menclose circle</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("circle").getBoundingClientRect();
    1.13 +        e = document.getElementById("ellipse");
    1.14 +        e.setAttribute("cx", (box.left + box.width/2));
    1.15 +        e.setAttribute("rx", (box.width/2));
    1.16 +        e.setAttribute("cy", (box.top + box.height/2));
    1.17 +        e.setAttribute("ry", (box.height/2));
    1.18 +        document.documentElement.removeAttribute("class");
    1.19 +      }
    1.20 +      window.addEventListener("MozReftestInvalidate",doTest, false);
    1.21 +    </script>
    1.22 +  </head>
    1.23 +  <body>
    1.24 +    <div style="position: absolute; left: 20px; top: 20px;">
    1.25 +      <math>
    1.26 +        <mphantom>
    1.27 +          <menclose id="circle" notation="circle">
    1.28 +            <mspace width="200px" height="100px"></mspace>
    1.29 +          </menclose>
    1.30 +        </mphantom>
    1.31 +      </math>
    1.32 +    </div>
    1.33 +
    1.34 +    <div style="position: absolute; left: 0px; top: 0px;">
    1.35 +      <svg width="500px" height="500px">
    1.36 +         <ellipse id="ellipse" style="fill: none; stroke-width: 8px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></ellipse>
    1.37 +      </svg>
    1.38 +    </div>
    1.39 +
    1.40 +  </body>
    1.41 +</html>

mercurial