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

mercurial