layout/reftests/margin-collapsing/inline-block-child-2-dyn.html

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

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

mercurial