summaryrefslogtreecommitdiffstats
path: root/layout/reftests/margin-collapsing/inline-block-child-1-dyn.html
blob: 6376b99d80d8c03e50038074e0cc9af351b62f22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
 display: inline-block;
 background-color: green;
}
#child {
 display: inline;
 height: 40px; width: 200px;
 margin: 20px 0;
 vertical-align: bottom;
 background-color: lightgreen;
}
</style>
<script type="text/javascript">
function test() {
 document.getElementById('child').style.display = 'inline-block';
 document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
 <div id="child"></div>
</div>
</body>
</html>