<!DOCTYPE HTML>
<html>
<style>
body {
    margin: 0px;
    padding: 0px;
}
.item {
    height: 40px;
    width: 40px;
}
fieldset {
    border: 0px;
    padding: 0px;
    margin: 0px;
}
.test {
    width: 40px;
    height:40px;
    background-color: red;
}
.container {
    position: relative;
    margin: 0px;
    padding: 0px;
}
.float {
    float: left;
    width: 40px;
    height:80px;
    background-color: blue;
}
</style>
<script src="../../../resources/check-layout.js"></script>
<body onload="checkLayout('.test')">
http://www.w3.org/TR/CSS2/visuren.html#float-position:
"References to [the elements] in the [rules that govern the behaviour of floats] refer only to other elements in the same block formatting context as the float."
<br>
<div class="container">
    <div class="item" style="display: inline-block;"><div class="float"></div></div>
    <div class="test" data-total-x=0></div>
</div>
<div class="container">
    <div class="item" style="display: inline-table;"><div class="float"></div></div>
    <div class="test" data-total-x=0></div>
</div>
<div class="container">
    <div class="item" style="display: table-caption;"><div class="float"></div></div>
    <div class="test" data-total-x=0 data-offset-y=40></div>
</div>
<div class="container">
    <div class="item" style="overflow:hidden;"><div class="float"></div></div>
    <div class="test" data-total-x=0 data-offset-y=40></div>
</div>
<div class="container">
    <div class="item" style="-webkit-columns: 10px 2;"><div class="float"></div></div>
    <div class="test" data-total-x=0 data-offset-y=40></div>
</div>
<div class="container">
    <div class="item" style="-webkit-column-span: all;"><div class="float"></div></div>
    <div class="test" data-total-x=0 data-offset-y=40></div>
</div>
<div class="container">
    <div style="display: flex; -webkit-flex-direction: column;">
        <div class="item"><div class="float"></div></div>
        <div class="test" data-total-x=0 data-offset-y=40></div>
    </div>
</div>
<div class="container">
    <fieldset class="item"><div class="float"></div></fieldset>
    <div class="test" data-total-x=0 data-offset-y=40></div>
</div>
</body>
</html>
