1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/margin-collapsing/inline-block-child-2-dyn.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,26 @@ 1.4 +<!DOCTYPE html> 1.5 +<html class="reftest-wait"> 1.6 +<head> 1.7 +<style type="text/css"> 1.8 +#inline-block { 1.9 + display: inline-block; 1.10 + margin: 10px 0; 1.11 + background-color: green; 1.12 +} 1.13 +#block { 1.14 + margin: 10px 0; 1.15 + background-color: lightgreen; 1.16 +} 1.17 +</style> 1.18 +<script type="text/javascript"> 1.19 +function test() { 1.20 + document.getElementById('block').style.display = 'block'; 1.21 + document.documentElement.removeAttribute('class'); 1.22 +} 1.23 +document.addEventListener('MozReftestInvalidate', test, false); 1.24 +</script> 1.25 +</head> 1.26 +<body> 1.27 +<div id="inline-block"><span id="block">Hello Kitty</span></div> 1.28 +</body> 1.29 +</html>