Bug 1731994: part 4) Declare more methods around `ContentPermissionRequestBase` ...
[gecko.git] / layout / reftests / floats / bfc-displace-4.html
blob2ff18c691ed8bbc2a09b79e8808ae3a685ef3ec2
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: 200px;
24 margin-right: 100px; /* ignored */
25 height: 15px;
26 background: fuchsia;
29 </style>
32 <div class="contain">
33 <div class="float" style="width: 200px"></div>
34 <div class="bfc"></div>
35 </div>