layout/reftests/margin-collapsing/block-html-html-3-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  html, body {
     6   margin: 0; padding: 0;
     7  }
     8  html {
     9   background-color: white;
    10   margin: 10px 0;
    11  }
    12  body {
    13   background-color: red;
    14   margin: 20px 0;
    15  }
    16  div {
    17   display: none;
    18   background-color: green;
    19   margin: 40px 0;
    20   height: 100px;
    21  }
    22  </style>
    23  <script type="text/javascript">
    24  function test() {
    25   document.getElementsByTagName('div')[0].style.display = 'block';
    26   document.documentElement.removeAttribute('class');
    27  }
    28  document.addEventListener('MozReftestInvalidate', test, false);
    29  </script>
    30 </head>
    31 <body>
    32 <div></div>
    33 </body>
    34 </html>

mercurial