layout/reftests/margin-collapsing/block-no-content-7-dyn.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 <style type="text/css">
     5 .separator {
     6  height: 20px;
     7  background-color: green;
     8 }
     9 #bfc {
    10  margin-top: 10px;
    11  margin-bottom: 20px;
    12 }
    13 </style>
    14 <script type="text/javascript">
    15 function test() {
    16  document.getElementById('bfc').style.overflow = 'hidden';
    17  document.documentElement.removeAttribute('class');
    18 }
    19 document.addEventListener('MozReftestInvalidate', test, false);
    20 </script>
    21 </head>
    22 <body>
    23 <div class="separator"></div>
    24 <div id="bfc"></div>
    25 <div class="separator"></div>
    26 </body>
    27 </html>

mercurial