1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/margin-collapsing/table-sibling-3-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 +#table1 { 1.9 + display: table; 1.10 + height: 20px; width: 100px; 1.11 + background-color: green; 1.12 + margin-bottom: 10px; 1.13 +} 1.14 +#table2 { 1.15 + display: table; 1.16 + height: 20px; width: 100px; 1.17 + background-color: red; 1.18 + margin-top: 20px; 1.19 + margin-bottom: 10px; 1.20 +} 1.21 +#table3 { 1.22 + display: table; 1.23 + height: 20px; width: 100px; 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('table2').style.display = 'none'; 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="table1"></div> 1.38 +<div id="table2"></div> 1.39 +<div id="table3"></div> 1.40 +</body> 1.41 +</html>