20 background-color: red;
31 background-color: blue;
34 <script src=
"../../../resources/check-layout.js"></script>
35 <body onload=
"checkLayout('.test')">
36 http://www.w3.org/TR/CSS2/visuren.html#float-position:
37 "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."
39 <div class=
"container">
40 <div class=
"item" style=
"display: inline-block;"><div class=
"float"></div></div>
41 <div class=
"test" data-total-x=
0></div>
43 <div class=
"container">
44 <div class=
"item" style=
"display: inline-table;"><div class=
"float"></div></div>
45 <div class=
"test" data-total-x=
0></div>
47 <div class=
"container">
48 <div class=
"item" style=
"display: table-caption;"><div class=
"float"></div></div>
49 <div class=
"test" data-total-x=
0 data-offset-y=
40></div>
51 <div class=
"container">
52 <div class=
"item" style=
"overflow:hidden;"><div class=
"float"></div></div>
53 <div class=
"test" data-total-x=
0 data-offset-y=
40></div>
55 <div class=
"container">
56 <div class=
"item" style=
"-webkit-columns: 10px 2;"><div class=
"float"></div></div>
57 <div class=
"test" data-total-x=
0 data-offset-y=
40></div>
59 <div class=
"container">
60 <div class=
"item" style=
"-webkit-column-span: all;"><div class=
"float"></div></div>
61 <div class=
"test" data-total-x=
0 data-offset-y=
40></div>
63 <div class=
"container">
64 <div style=
"display: flex; -webkit-flex-direction: column;">
65 <div class=
"item"><div class=
"float"></div></div>
66 <div class=
"test" data-total-x=
0 data-offset-y=
40></div>
69 <div class=
"container">
70 <fieldset class=
"item"><div class=
"float"></div></fieldset>
71 <div class=
"test" data-total-x=
0 data-offset-y=
40></div>