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