blob: 1b53d258f78ddff43ef092f75ecc7b4bb73a9e20 [file] [log] [blame]
<html>
<head>
<style>
div {
margin: 0px;
}
.container {
border: thin solid blue;
width: 300px;
}
.block {
background-color: green;
margin-top: 4px;
margin-bottom: 6px;
border: 1px dashed black;
-webkit-writing-mode: horizontal-bt;
}
.collapse_top:before, .collapse_bottom:after {
content: "Collapse";
}
.discard_top:before, .discard_bottom:after {
content: "Discard";
}
.separate_top:before, .separate_bottom:after {
content: "Separate";
}
#b2 {
margin-top: 6px;
margin-bottom: 0px;
}
#b3 {
margin-top: 6px;
margin-bottom: 0px;
}
#b4 {
margin-top: 6px;
margin-bottom: 0px;
}
#b5 {
margin-top: 0px;
margin-bottom: 0px;
}
#b6 {
margin-top: 0px;
margin-bottom: 0px;
}
#b7 {
margin-top: 14px;
margin-bottom: 0px;
}
#b8 {
margin-top: 4px;
margin-bottom: 0px;
}
#b9 {
margin-top: 10px;
margin-bottom: 10px;
}
#b10 {
margin-top: 0px;
margin-bottom: 0px;
}
</style>
</head>
<body>
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=108168">Implement the -webkit-margin-collapse properties correct rendering</a>.</p>
<p>This ref test covers basic collapsing behavior between sibling boxes when using -webkit-margin-collapse. The blocks have lr-bt writing mode.</p>
<div class="container">
<div id="b1" class="block collapse_top collapse_bottom"><br/></div>
<div id="b2" class="block collapse_top collapse_bottom"><br/></div>
<div id="b3" class="block separate_top collapse_bottom"><br/></div>
<div id="b4" class="block discard_top discard_bottom"><br/></div>
<div id="b5" class="block collapse_top discard_bottom"><br/></div>
<div id="b6" class="block separate_top discard_bottom"><br/></div>
<div id="b7" class="block discard_top separate_bottom"><br/></div>
<div id="b8" class="block collapse_top separate_bottom"><br/></div>
<div id="b9" class="block separate_top separate_bottom"><br/></div>
<div id="b10" class="block discard_top collapse_bottom"><br/></div>
</div>
</body>
</html>