no bug - Import translations from android-l10n r=release a=l10n CLOSED TREE
[gecko.git] / layout / reftests / floats / bfc-shrink-1-ref.html
blob071b66300acb4093c2e29d3c55112e6b1eeb459d
1 <!DOCTYPE HTML>
2 <title>Test of block formatting context displacement by floats</title>
3 <link rel="help" href="https://drafts.csswg.org/css2/visuren.html#floats">
4 <meta name="assert" content="The border box of a table, a block-level replaced element, or an element in the normal flow that establishes a new block formatting context (such as an element with 'overflow' other than 'visible') must not overlap the margin box of any floats in the same block formatting context as the element itself.">
5 <style>
7 .contain {
8 border: medium solid;
9 width: 400px;
10 height: 400px;
11 background: yellow;
14 .float {
15 float: left;
16 clear: left;
17 height: 20px;
18 background: blue;
21 .bfc {
22 float: right;
23 width: 200px;
24 height: 50px;
25 background: fuchsia;
28 </style>
31 <div class="contain">
32 <div class="bfc"></div>
33 <div class="float" style="width: 100px"></div>
34 <div class="float" style="width: 200px"></div>
35 </div>