layout/reftests/margin-collapsing/table-caption-top-outside-2-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 .block {
     6  height: 20px;
     7  background-color: green;
     8 }
     9 #table {
    10  display: table;
    11  width: 100px;
    12  margin: 10px 0;
    13 }
    14 #caption {
    15  display: table-cell;
    16  caption-side: top-outside;
    17  height: 20px;
    18  margin: 20px 0;
    19  background-color: blue;
    20 }
    21 #cell {
    22  display: table-cell;
    23  height: 20px;
    24  background-color: orange;
    25 }
    26 </style>
    27 <script type="text/javascript">
    28 function test() {
    29  document.getElementById('caption').style.display = 'table-caption';
    30  document.documentElement.removeAttribute('class');
    31 }
    32 document.addEventListener('MozReftestInvalidate', test, false);
    33 </script>
    34 </head>
    35 <body>
    36 <div class="block"></div>
    37 <div id="table">
    38  <div id="caption"></div>
    39  <div id="cell"></div>
    40 </div>
    41 <div class="block"></div>
    42 </body>
    43 </html>

mercurial