layout/reftests/margin-collapsing/block-non-sibling-1d-dyn.html

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

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

mercurial