1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/floats/other-float-outside-rule-7-left.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,32 @@ 1.4 +<!DOCTYPE HTML> 1.5 + <title>CSS 2.1 Test Suite: float placement around other float in BFC but outside containing block</title> 1.6 + <link rel="author" title="L. David Baron" href="http://dbaron.org/" /> 1.7 + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> 1.8 + <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats"/> 1.9 + <meta name="flags" content="" /> 1.10 + <meta name="assert" content="Test for float placement around other float in BFC but outside containing block" /> 1.11 + 1.12 +<!-- 1.13 + CSS2.1 9.5.1 rule 7 says: 1.14 + 1.15 + A left-floating box that has another left-floating box to its left 1.16 + may not have its right outer edge to the right of its containing 1.17 + block's right edge. (Loosely: a left float may not stick out at the 1.18 + right edge, unless it is already as far to the left as possible.) An 1.19 + analogous rule holds for right-floating elements. 1.20 + 1.21 + --> 1.22 + 1.23 +<!-- the block formatting context inside which we're testing --> 1.24 +<div style="float: left; width: 500px; height: 500px"> 1.25 + 1.26 + <div style="float: left; width: 50px; height: 300px"></div> 1.27 + 1.28 + <div style="margin-left: 100px"> <!-- 400px wide --> 1.29 + 1.30 + <!-- we're testing the position of this float --> 1.31 + <div style="float: left; width: 425px; height: 10px; background: blue"></div> 1.32 + 1.33 + </div> 1.34 + 1.35 +</div>