layout/reftests/margin-collapsing/block-float-2a-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 #separator {
     6  height: 20px;
     7  background-color: green;
     8 }
     9 #float {
    10  float: left;
    11  width: 50px;
    12  margin: 20px 0;
    13  background-color: green;
    14 }
    15 #child {
    16  height: 20px;
    17  background-color: lightgreen;
    18 }
    19 </style>
    20 <script type="text/javascript">
    21 function test() {
    22  document.getElementById('child').style.margin = '40px 0';
    23  document.documentElement.removeAttribute('class');
    24 }
    25 document.addEventListener('MozReftestInvalidate', test, false);
    26 </script>
    27 </head>
    28 <body>
    29 <div id="separator"></div>
    30 <div id="float">
    31  <div id="child"></div>
    32 </div>
    33 </body>
    34 </html>

mercurial