Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | <!doctype html> |
michael@0 | 2 | <html class="reftest-wait"> |
michael@0 | 3 | <head> |
michael@0 | 4 | <title>menclose updiagonalstrike</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 | document.getElementById("path").setAttribute("d", |
michael@0 | 11 | "M" + (box.left + "," + box.bottom) + " " + |
michael@0 | 12 | "l" + (box.width + "," + (-box.height))); |
michael@0 | 13 | document.documentElement.removeAttribute("class"); |
michael@0 | 14 | } |
michael@0 | 15 | window.addEventListener("MozReftestInvalidate",doTest, false); |
michael@0 | 16 | </script> |
michael@0 | 17 | </head> |
michael@0 | 18 | <body> |
michael@0 | 19 | |
michael@0 | 20 | <div style="position: absolute; left: 20px; top: 20px;"> |
michael@0 | 21 | <math> |
michael@0 | 22 | <menclose id="box" notation="updiagonalstrike"> |
michael@0 | 23 | <mspace width="200px" height="100px"></mspace> |
michael@0 | 24 | </menclose> |
michael@0 | 25 | </math> |
michael@0 | 26 | </div> |
michael@0 | 27 | |
michael@0 | 28 | <div style="position: absolute; left: 0px; top: 0px;"> |
michael@0 | 29 | <svg width="500px" height="500px"> |
michael@0 | 30 | <path id="path" style="fill: none; stroke-width: 5px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></path> |
michael@0 | 31 | </svg> |
michael@0 | 32 | </div> |
michael@0 | 33 | |
michael@0 | 34 | </body> |
michael@0 | 35 | </html> |