layout/reftests/invalidation/box-shadow-border-radius.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.

     1 <html class="reftest-wait">
     2 <head>
     3 <style>
     4 div#blurred {
     5 	box-shadow: 0 0 50px 0 #000;
     6 	position: absolute;
     7 	width: 100px;
     8 	height: 100px;
     9 	top: 30px;
    10 	left: 30px;
    12 	border-radius: 40px;
    13 }
    14 </style>
    15 </head>
    16 <body>
    17 <div id="blurred"></div>
    18 <script>
    19 function doTest() {
    20 	var div = document.getElementById("blurred");
    21 	div.style.left = '60px';
    22 	document.documentElement.removeAttribute("class");
    23 }
    24 document.addEventListener("MozReftestInvalidate", doTest, false);
    25 </script>
    26 </body>
    27 </html>

mercurial