Bug 1731994: part 4) Declare more methods around `ContentPermissionRequestBase` ...
[gecko.git] / layout / reftests / floats / bfc-displace-1b.html
blobb7d4ec4838616efb4f8f66bac24c1866a170d31e
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 overflow: hidden;
23 width: 250px;
24 margin-top: 7px;
25 height: 14px; /* one pixel too tall to fit next to first float */
26 margin-bottom: 20px;
27 background: fuchsia;
30 </style>
32 <div class="contain">
33 <div class="float" style="width: 100px"></div>
34 <div class="float" style="width: 200px"></div>
35 <div class="bfc"></div>
36 </div>