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

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

michael@0 1 <!doctype html>
michael@0 2 <html class="reftest-wait">
michael@0 3 <head>
michael@0 4 <title>menclose circle</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("circle").getBoundingClientRect();
michael@0 10 e = document.getElementById("ellipse");
michael@0 11 e.setAttribute("cx", (box.left + box.width/2));
michael@0 12 e.setAttribute("rx", (box.width/2));
michael@0 13 e.setAttribute("cy", (box.top + box.height/2));
michael@0 14 e.setAttribute("ry", (box.height/2));
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 <body>
michael@0 21 <div style="position: absolute; left: 20px; top: 20px;">
michael@0 22 <math>
michael@0 23 <mphantom>
michael@0 24 <menclose id="circle" notation="circle">
michael@0 25 <mspace width="200px" height="100px"></mspace>
michael@0 26 </menclose>
michael@0 27 </mphantom>
michael@0 28 </math>
michael@0 29 </div>
michael@0 30
michael@0 31 <div style="position: absolute; left: 0px; top: 0px;">
michael@0 32 <svg width="500px" height="500px">
michael@0 33 <ellipse id="ellipse" style="fill: none; stroke-width: 8px; stroke: green; stroke-linecap: round; shape-rendering: crispEdges;"></ellipse>
michael@0 34 </svg>
michael@0 35 </div>
michael@0 36
michael@0 37 </body>
michael@0 38 </html>

mercurial