| Index: third_party/WebKit/LayoutTests/fast/block/float/margin-top-changes.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/block/float/margin-top-changes.html b/third_party/WebKit/LayoutTests/fast/block/float/margin-top-changes.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..10521c0c5428899704de1e88c8b09a2185b61c41
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/block/float/margin-top-changes.html
|
| @@ -0,0 +1,42 @@
|
| +<!DOCTYPE html>
|
| +<style>
|
| +body
|
| +{
|
| + margin: 0;
|
| + padding: 0;
|
| +}
|
| +.div
|
| +{
|
| + width: 100px;
|
| + height: 50px;
|
| +}
|
| +#float
|
| +{
|
| + float: left;
|
| +}
|
| +#inline
|
| +{
|
| + display: inline-block;
|
| + background-color:green;
|
| +}
|
| +#positioned
|
| +{
|
| + position: absolute;
|
| + background-color: red;
|
| + z-index: -1;
|
| +}
|
| +</style>
|
| +<div id="positioned" class="div"></div>
|
| +<div id="float" class="div"></div>
|
| +<div id="test">
|
| + <div id="inline" class="div"></div>
|
| +</div>
|
| +<script src="../../../resources/testharness.js"></script>
|
| +<script src="../../../resources/testharnessreport.js"></script>
|
| +<script>
|
| + document.body.offsetTop;
|
| + float.style["margin-top"] = "-50px";
|
| + test(() => {
|
| + assert_equals(document.getElementById("inline").offsetLeft, 0);
|
| + }, "crbug.com/711938: Sibling elements notice when a float no longer overlaps due to margin top changing.");
|
| +</script>
|
|
|