layout/reftests/margin-collapsing/fieldset-sibling-2c-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 fieldset {
     6  height: 20px;
     7  padding: 0;
     8  border: none;
     9  background-color: green;
    10 }
    11 #top {
    12  margin: 0 0 20px;
    13 }
    14 #middle {
    15  margin: 0;
    16 }
    17 #bottom {
    18  margin: 20px 0 0;
    19 }
    20 </style>
    21 <script type="text/javascript">
    22 function test() {
    23  document.getElementById('middle').style.margin = '20px 0';
    24  document.documentElement.removeAttribute('class');
    25 }
    26 document.addEventListener('MozReftestInvalidate', test, false);
    27 </script>
    28 </head>
    29 <body>
    30 <fieldset id="top"></fieldset>
    31 <fieldset id="middle"></fieldset>
    32 <fieldset id="bottom"></fieldset>
    33 </body>
    34 </html>

mercurial