layout/reftests/margin-collapsing/block-first-child-1c-dyn.html

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

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

mercurial