layout/reftests/margin-collapsing/caption-sibling-2-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-2-dyn.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,46 @@
     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: table-caption;
    1.22 + height: 20px;
    1.23 + background-color: blue;
    1.24 + margin-top: 10px;
    1.25 + margin-bottom: 20px;
    1.26 +}
    1.27 +#caption3 {
    1.28 + display: table-caption;
    1.29 + height: 20px;
    1.30 + background-color: green;
    1.31 + margin-top: 10px;
    1.32 +}
    1.33 +</style>
    1.34 +<script type="text/javascript">
    1.35 +function test() {
    1.36 + document.getElementById('caption2').style.display = 'none';
    1.37 + document.documentElement.removeAttribute('class');
    1.38 +}
    1.39 +document.addEventListener('MozReftestInvalidate', test, false);
    1.40 +</script>
    1.41 +</head>
    1.42 +<body>
    1.43 +<div id="table">
    1.44 + <div id="caption1"></div>
    1.45 + <div id="caption2"></div>
    1.46 + <div id="caption3"></div>
    1.47 +</div>
    1.48 +</body>
    1.49 +</html>

mercurial