gecko/layout/reftests/margin-collapsing/table-caption-top-1-dyn.html

49 lines
839 B
HTML
Raw Normal View History

Bug 921761 - margin-collapsing test suite, wave 8; dynamic and additional cases for margins of a BFC; Multi-column margins; margins given in percent and em; r=dholbert --HG-- rename : layout/reftests/margin-collapsing/block-abs-pos-1.html => layout/reftests/margin-collapsing/block-abs-pos-1-dyn.html rename : layout/reftests/margin-collapsing/block-abs-pos-2.html => layout/reftests/margin-collapsing/block-abs-pos-2-dyn.html rename : layout/reftests/margin-collapsing/block-float-1a.html => layout/reftests/margin-collapsing/block-float-1a-dyn.html rename : layout/reftests/margin-collapsing/block-float-1b.html => layout/reftests/margin-collapsing/block-float-1b-dyn.html rename : layout/reftests/margin-collapsing/block-float-2a.html => layout/reftests/margin-collapsing/block-float-2a-dyn.html rename : layout/reftests/margin-collapsing/block-float-2b.html => layout/reftests/margin-collapsing/block-float-2b-dyn.html rename : layout/reftests/margin-collapsing/block-no-content-1a.html => layout/reftests/margin-collapsing/block-no-content-1a-dyn.html rename : layout/reftests/margin-collapsing/block-no-content-1b.html => layout/reftests/margin-collapsing/block-no-content-1b-dyn.html rename : layout/reftests/margin-collapsing/block-no-content-1c.html => layout/reftests/margin-collapsing/block-no-content-1c-dyn.html rename : layout/reftests/margin-collapsing/block-no-content-2a.html => layout/reftests/margin-collapsing/block-no-content-2a-dyn.html rename : layout/reftests/margin-collapsing/block-no-content-2b.html => layout/reftests/margin-collapsing/block-no-content-2b-dyn.html rename : layout/reftests/margin-collapsing/block-no-content-2c.html => layout/reftests/margin-collapsing/block-no-content-2c-dyn.html rename : layout/reftests/margin-collapsing/block-no-content-2d.html => layout/reftests/margin-collapsing/block-no-content-2d-dyn.html rename : layout/reftests/margin-collapsing/block-no-content-3.html => layout/reftests/margin-collapsing/block-no-content-3a-dyn.html rename : layout/reftests/margin-collapsing/block-no-content-3.html => layout/reftests/margin-collapsing/block-no-content-3a.html rename : layout/reftests/margin-collapsing/block-no-content-4.html => layout/reftests/margin-collapsing/block-no-content-4a-dyn.html rename : layout/reftests/margin-collapsing/block-no-content-4.html => layout/reftests/margin-collapsing/block-no-content-4a.html rename : layout/reftests/margin-collapsing/block-overflow-1.html => layout/reftests/margin-collapsing/block-overflow-1-dyn.html rename : layout/reftests/margin-collapsing/block-overflow-2.html => layout/reftests/margin-collapsing/block-overflow-2-dyn.html rename : layout/reftests/margin-collapsing/block-overflow-3.html => layout/reftests/margin-collapsing/block-overflow-3-dyn.html rename : layout/reftests/margin-collapsing/block-overflow-4.html => layout/reftests/margin-collapsing/block-overflow-4-dyn.html rename : layout/reftests/margin-collapsing/block-overflow-5a.html => layout/reftests/margin-collapsing/block-overflow-5a-dyn.html rename : layout/reftests/margin-collapsing/block-overflow-5b.html => layout/reftests/margin-collapsing/block-overflow-5b-dyn.html rename : layout/reftests/margin-collapsing/block-overflow-5c.html => layout/reftests/margin-collapsing/block-overflow-5c-dyn.html rename : layout/reftests/margin-collapsing/block-overflow-5d.html => layout/reftests/margin-collapsing/block-overflow-5d-dyn.html rename : layout/reftests/margin-collapsing/block-percent-1.html => layout/reftests/margin-collapsing/block-percent-1-dyn.html rename : layout/reftests/margin-collapsing/fieldset-child-1.html => layout/reftests/margin-collapsing/fieldset-child-1-dyn.html rename : layout/reftests/margin-collapsing/fieldset-sibling-1a.html => layout/reftests/margin-collapsing/fieldset-sibling-1a-dyn.html rename : layout/reftests/margin-collapsing/fieldset-sibling-1b.html => layout/reftests/margin-collapsing/fieldset-sibling-1b-dyn.html rename : layout/reftests/margin-collapsing/fieldset-sibling-1c.html => layout/reftests/margin-collapsing/fieldset-sibling-1c-dyn.html rename : layout/reftests/margin-collapsing/fieldset-sibling-2a.html => layout/reftests/margin-collapsing/fieldset-sibling-2a-dyn.html rename : layout/reftests/margin-collapsing/fieldset-sibling-2b.html => layout/reftests/margin-collapsing/fieldset-sibling-2b-dyn.html rename : layout/reftests/margin-collapsing/fieldset-sibling-2c.html => layout/reftests/margin-collapsing/fieldset-sibling-2c-dyn.html rename : layout/reftests/margin-collapsing/inline-block-child-1.html => layout/reftests/margin-collapsing/inline-block-child-1-dyn.html rename : layout/reftests/margin-collapsing/inline-block-child-2.html => layout/reftests/margin-collapsing/inline-block-child-2-dyn.html rename : layout/reftests/margin-collapsing/inline-block-sibling-1a.html => layout/reftests/margin-collapsing/inline-block-sibling-1a-dyn.html rename : layout/reftests/margin-collapsing/inline-block-sibling-1b.html => layout/reftests/margin-collapsing/inline-block-sibling-1b-dyn.html rename : layout/reftests/margin-collapsing/inline-block-sibling-1c.html => layout/reftests/margin-collapsing/inline-block-sibling-1c-dyn.html rename : layout/reftests/margin-collapsing/inline-block-sibling-2.html => layout/reftests/margin-collapsing/inline-block-sibling-2-dyn.html rename : layout/reftests/margin-collapsing/table-caption-1a.html => layout/reftests/margin-collapsing/table-caption-1a-dyn.html rename : layout/reftests/margin-collapsing/table-caption-1b.html => layout/reftests/margin-collapsing/table-caption-1b-dyn.html rename : layout/reftests/margin-collapsing/table-caption-2a.html => layout/reftests/margin-collapsing/table-caption-2a-dyn.html rename : layout/reftests/margin-collapsing/table-caption-2b.html => layout/reftests/margin-collapsing/table-caption-2b-dyn.html rename : layout/reftests/margin-collapsing/table-caption-2c.html => layout/reftests/margin-collapsing/table-caption-2c-dyn.html rename : layout/reftests/margin-collapsing/table-caption-bottom-1.html => layout/reftests/margin-collapsing/table-caption-bottom-1-dyn.html rename : layout/reftests/margin-collapsing/table-caption-bottom-2.html => layout/reftests/margin-collapsing/table-caption-bottom-2-dyn.html rename : layout/reftests/margin-collapsing/table-caption-top-1.html => layout/reftests/margin-collapsing/table-caption-top-1-dyn.html rename : layout/reftests/margin-collapsing/table-caption-top-2.html => layout/reftests/margin-collapsing/table-caption-top-2-dyn.html
2014-03-04 14:09:37 -08:00
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#block1, #block2 {
height: 20px;
background-color: green;
}
#block1 {
margin-bottom: 10px;
}
#block2 {
margin-top: 10px;
}
#table {
display: table;
}
#caption {
display: table-cell;
caption-side: top;
height: 20px;
margin: 20px 0;
background-color: blue;
}
#cell {
display: table-cell;
width: 100px;
height: 20px;
background-color: orange;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('caption').style.display = 'table-caption';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="block1"></div>
<div id="table">
<div id="caption"></div>
<div id="cell"></div>
</div>
<div id="block2"></div>
</body>
</html>