layout/reftests/floats/other-float-outside-rule-3-left.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/floats/other-float-outside-rule-3-left.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,30 @@
     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 3 says:
    1.14 +
    1.15 +    The right outer edge of a left-floating box may not be to the right
    1.16 +    of the left outer edge of any right-floating box that is to the
    1.17 +    right of it. Analogous rules hold for right-floating elements. 
    1.18 +
    1.19 + -->
    1.20 +
    1.21 +<!-- the block formatting context inside which we're testing -->
    1.22 +<div style="float: left; width: 500px; height: 500px">
    1.23 +
    1.24 +  <div style="float: right; width: 50px; height: 300px"></div>
    1.25 +
    1.26 +  <div style="margin-right: 100px"> <!-- 400px wide -->
    1.27 +
    1.28 +    <!-- we're testing the position of this float -->
    1.29 +    <div style="float: left; width: 425px; height: 10px; background: blue"></div>
    1.30 +
    1.31 +  </div>
    1.32 +
    1.33 +</div>

mercurial