layout/reftests/margin-collapsing/block-auto-height-last-child-1c-dyn.html

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
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 #last-child, #separator {
     6  height: 20px;
     7  background-color: green;
     8 }
     9 #parent {
    10  margin-bottom: 20px;
    11 }
    12 #last-child {
    13  display: none;
    14  margin-bottom: 20px;
    15 }
    16 </style>
    17 <script type="text/javascript">
    18 function test() {
    19  document.getElementById('last-child').style.display = 'block';
    20  document.documentElement.removeAttribute('class');
    21 }
    22 document.addEventListener('MozReftestInvalidate', test, false);
    23 </script>
    24 </head>
    25 <body>
    26 <div id="parent">
    27  <div id="last-child"></div>
    28 </div>
    29 <div id="separator"></div>
    30 </body>
    31 </html>

mercurial