Bug 1800044 [wpt PR 36907] - Fix same URL navigation test, a=testonly
[gecko.git] / layout / reftests / margin-collapsing / block-negative-3b-dyn1.html
blob2cb9a372123171224218d7dd028f4ffa78614c95
1 <!DOCTYPE html>
2 <html class="reftest-wait">
3 <head>
4 <style type="text/css">
5 html, body {
6 margin: 0; padding: 5px;
8 div {
9 height: 20px;
10 background-color: green;
12 #negative {
13 margin-bottom: -80px;
15 #positive {
16 display: none;
17 margin-top: 100px;
19 </style>
20 <script type="text/javascript">
21 function test() {
22 document.getElementById('positive').style.display = 'block';
23 document.documentElement.removeAttribute('class');
25 document.addEventListener('MozReftestInvalidate', test);
26 </script>
27 </head>
28 <body>
29 <div id="negative"></div>
30 <div id="positive"></div>
31 </body>
32 </html>