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

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

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

mercurial