layout/reftests/margin-collapsing/table-sibling-1c-dyn.html

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1 <!DOCTYPE html>
     2 <html class="reftest-wait">
     3 <head>
     4 <style type="text/css">
     5 #block1 {
     6  display: block;
     7  height: 20px;
     8  background-color: green;
     9  margin-bottom: 20px;
    10 }
    11 #table {
    12  display: none;
    13  height: 20px; width: 100px;
    14  background-color: red;
    15  margin-top: 20px;
    16  margin-bottom: 20px;
    17 }
    18 #block2 {
    19  display: block;
    20  height: 20px;
    21  background-color: blue;
    22  margin-top: 20px;
    23 }
    24 </style>
    25 <script type="text/javascript">
    26 function test() {
    27  document.getElementById('table').style.display = 'table';
    28  document.documentElement.removeAttribute('class');
    29 }
    30 document.addEventListener('MozReftestInvalidate', test, false);
    31 </script>
    32 </head>
    33 <body>
    34 <div id="block1"></div>
    35 <div id="table"></div>
    36 <div id="block2"></div>
    37 </body>
    38 </html>

mercurial