layout/reftests/margin-collapsing/block-xhtml-html-3-dyn.xhtml

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

mercurial