layout/reftests/margin-collapsing/block-xhtml-html-1b-dyn.xhtml

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

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

mercurial