Bug 1800044 [wpt PR 36907] - Fix same URL navigation test, a=testonly
[gecko.git] / layout / reftests / margin-collapsing / block-negative-2b-dyn2.html
blobef84e2e89915ec631432431183390160f5baf4d8
1 <!DOCTYPE html>
2 <html class="reftest-wait">
3 <head>
4 <style type="text/css">
5 #a {
6 height: 20px;
7 background-color: green;
8 margin-bottom: 0;
10 #b {
11 height: 20px;
12 background-color: blue;
14 </style>
15 <script type="text/javascript">
16 function test() {
17 document.getElementById('a').style.marginBottom = '-20px';
18 document.documentElement.removeAttribute('class');
20 document.addEventListener('MozReftestInvalidate', test);
21 </script>
22 </head>
23 <body>
24 <div id="a"></div>
25 <div id="b"></div>
26 </body>
27 </html>