gecko-dev/layout/reftests/margin-collapsing/block-no-content-1a-dyn.html

24 строки
501 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
.separator {
height: 20px;
background-color: green;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('margin-only').style.margin = '10px 0 20px';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test);
</script>
</head>
<body>
<div class="separator"></div>
<div id="margin-only"></div>
<div class="separator"></div>
</body>
</html>