Bug 1800044 [wpt PR 36907] - Fix same URL navigation test, a=testonly
[gecko.git] / layout / reftests / margin-collapsing / block-no-content-4a-dyn.html
blob53a5041f7d864f26aaec514485731216321d3c71
1 <!DOCTYPE html>
2 <html class="reftest-wait">
3 <head>
4 <style type="text/css">
5 #parent {
6 background-color: green;
8 #first-child {
9 height: 20px;
10 margin-bottom: 10px;
12 #last-child {
13 margin-top: 30px;
15 #separator {
16 height: 20px;
17 margin-top: 20px;
18 background-color: green;
20 </style>
21 <script type="text/javascript">
22 function test() {
23 document.getElementById('last-child').style.marginBottom = '40px';
24 document.documentElement.removeAttribute('class');
26 document.addEventListener('MozReftestInvalidate', test);
27 </script>
28 </head>
29 <body>
30 <div id="parent">
31 <div id="first-child"></div>
32 <div id="last-child"></div>
33 </div>
34 <div id="separator"></div>
35 </body>
36 </html>