1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/margin-collapsing/table-sibling-1c-dyn.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,38 @@ 1.4 +<!DOCTYPE html> 1.5 +<html class="reftest-wait"> 1.6 +<head> 1.7 +<style type="text/css"> 1.8 +#block1 { 1.9 + display: block; 1.10 + height: 20px; 1.11 + background-color: green; 1.12 + margin-bottom: 20px; 1.13 +} 1.14 +#table { 1.15 + display: none; 1.16 + height: 20px; width: 100px; 1.17 + background-color: red; 1.18 + margin-top: 20px; 1.19 + margin-bottom: 20px; 1.20 +} 1.21 +#block2 { 1.22 + display: block; 1.23 + height: 20px; 1.24 + background-color: blue; 1.25 + margin-top: 20px; 1.26 +} 1.27 +</style> 1.28 +<script type="text/javascript"> 1.29 +function test() { 1.30 + document.getElementById('table').style.display = 'table'; 1.31 + document.documentElement.removeAttribute('class'); 1.32 +} 1.33 +document.addEventListener('MozReftestInvalidate', test, false); 1.34 +</script> 1.35 +</head> 1.36 +<body> 1.37 +<div id="block1"></div> 1.38 +<div id="table"></div> 1.39 +<div id="block2"></div> 1.40 +</body> 1.41 +</html>