layout/reftests/margin-collapsing/block-negative-4b-dyn2.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

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

mercurial