layout/reftests/margin-collapsing/block-html-html-2-dyn.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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  }
    11  body {
    12   background-color: red;
    13   margin: 20px 0;
    14  }
    15  div {
    16   display: none;
    17   background-color: green;
    18   margin: 10px 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