| Index: third_party/WebKit/LayoutTests/fast/block/margin-collapse/clear-nested-float-more-than-one-previous-sibling-away.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/block/margin-collapse/clear-nested-float-more-than-one-previous-sibling-away.html b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/clear-nested-float-more-than-one-previous-sibling-away.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a3443d0d4d9c7d019f7bb0f31a8c7603820ded57
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/block/margin-collapse/clear-nested-float-more-than-one-previous-sibling-away.html
|
| @@ -0,0 +1,47 @@
|
| +<!DOCTYPE html>
|
| +<style>
|
| +html, body { margin: 0; padding: 0 }
|
| +#float {
|
| + float: right;
|
| + background: green;
|
| + width: 100px;
|
| + height: 50px;
|
| +}
|
| +
|
| +#test {
|
| + width: 100px;
|
| + height: 50px;
|
| + overflow: hidden;
|
| + margin-top: -50px;
|
| + background: green;
|
| +}
|
| +
|
| +.clear {
|
| + display: block;
|
| + clear: both;
|
| + height: 0px;
|
| +}
|
| +
|
| +#red {
|
| + position:absolute;
|
| + width:100px;
|
| + height:100px;
|
| + background-color: red;
|
| + top:0px;
|
| + z-index: -1;
|
| +}
|
| +</style>
|
| +<div id="red"></div>
|
| +<div style="width: 100px;">
|
| + <div>
|
| + <div id="float"></div>
|
| + <div class="clear">Test</div>
|
| + </div>
|
| + <div>Test</div>
|
| +</div>
|
| +<div id="test" data-offset-y=50></div>
|
| +<script src="../../../resources/check-layout.js"></script>
|
| +<script>
|
| +window.checkLayout("#test", document.getElementById("test-output"));
|
| +</script>
|
| +<p>crbug.com/535381 : Clear floats nested in earlier siblings. There should be a green box and no red.</p>
|
|
|