Bug 1800044 [wpt PR 36907] - Fix same URL navigation test, a=testonly
[gecko.git] / layout / reftests / margin-collapsing / block-negative-4b-dyn1.html
blob98b66d2041dd1eadd6a5870b6afc9f7e9b56b5b5
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-top: 30px;
14 margin-bottom: -90px;
16 #positive {
17 display: none;
18 margin-top: 40px;
19 background-color: blue;
21 </style>
22 <script type="text/javascript">
23 function test() {
24 document.getElementById('positive').style.display = 'block';
25 document.documentElement.removeAttribute('class');
27 document.addEventListener('MozReftestInvalidate', test);
28 </script>
29 </head>
30 <body>
31 <div id="negative"></div>
32 <div id="positive"></div>
33 </body>
34 </html>