layout/reftests/margin-collapsing/caption-sibling-1c-dyn.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/margin-collapsing/caption-sibling-1c-dyn.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,45 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html class="reftest-wait">
     1.6 +<head>
     1.7 +<!-- dbaron thinks the validity of this test is questionable, see
     1.8 +     https://bugzilla.mozilla.org/show_bug.cgi?id=477462#c20 and #c21 -->
     1.9 +<style type="text/css">
    1.10 +#table {
    1.11 + display: table;
    1.12 + width: 100px;
    1.13 +}
    1.14 +#caption1 {
    1.15 + display: table-caption;
    1.16 + height: 20px;
    1.17 + background-color: red;
    1.18 + margin-bottom: 20px;
    1.19 +}
    1.20 +#caption2 {
    1.21 + display: none;
    1.22 + height: 20px;
    1.23 + background-color: blue;
    1.24 + margin: 10px 0;
    1.25 +}
    1.26 +#caption3 {
    1.27 + display: table-caption;
    1.28 + height: 20px;
    1.29 + background-color: green;
    1.30 + margin-top: 20px;
    1.31 +}
    1.32 +</style>
    1.33 +<script type="text/javascript">
    1.34 +function test() {
    1.35 + document.getElementById('caption2').style.display = 'table-caption';
    1.36 + document.documentElement.removeAttribute('class');
    1.37 +}
    1.38 +document.addEventListener('MozReftestInvalidate', test, false);
    1.39 +</script>
    1.40 +</head>
    1.41 +<body>
    1.42 +<div id="table">
    1.43 + <div id="caption1"></div>
    1.44 + <div id="caption2"></div>
    1.45 + <div id="caption3"></div>
    1.46 +</div>
    1.47 +</body>
    1.48 +</html>

mercurial