layout/reftests/border-radius/scroll-1.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 <!DOCTYPE HTML>
     2 <html class="reftest-wait">
     3 <head>
     4 <script>
     5 function scrollTo(v) {
     6   var d = document.getElementById("d");
     7   d.scrollTop = v;
     8   if (v < 100) {
     9     setTimeout(function() { scrollTo(v + 50); }, 400);
    10   } else {
    11     document.documentElement.removeAttribute("class");
    12   }
    13 }
    14 </script>
    15 </head>
    16 <body onload="scrollTo(0)">
    17 <div style="border-radius:100px; width:300px; height:300px; overflow:hidden;" id="d">
    18   <div style="height:1000px;">
    19     <div style="margin-top:100px; height:20px; background:blue;"></div>
    20   </div>
    21 </div>
    22 </body>
    23 </html>

mercurial