layout/reftests/flexbox/flexbox-float-2b.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/flexbox/flexbox-float-2b.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,46 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<!--
     1.6 +     Any copyright is dedicated to the Public Domain.
     1.7 +     http://creativecommons.org/publicdomain/zero/1.0/
     1.8 +-->
     1.9 +<!--
    1.10 +     This test verifies that 'float' on a grandchild of a flex container _will_
    1.11 +     cause the element to be floated.
    1.12 +
    1.13 +     This differs from the "2a" variant in that the flex items are <div>s
    1.14 +     rather than <span>s (though that shouldn't matter, because <span> as a
    1.15 +     flex item should become "display:block").
    1.16 +-->
    1.17 +<html xmlns="http://www.w3.org/1999/xhtml">
    1.18 +  <head>
    1.19 +    <style>
    1.20 +      div.flexbox {
    1.21 +        display: flex;
    1.22 +        font-family: sans-serif;
    1.23 +        width: 400px;
    1.24 +        margin-bottom: 2px;
    1.25 +        background: lightgreen;
    1.26 +        justify-content: space-around;
    1.27 +      }
    1.28 +    </style>
    1.29 +  </head>
    1.30 +  <body>
    1.31 +    <!-- These cases have a floated span as a grandchild of the flex container.
    1.32 +         The span should float within its flex item. -->
    1.33 +    <div class="flexbox">
    1.34 +      <div>aaa<span style="float: left">lll</span>bbb</div>
    1.35 +    </div>
    1.36 +    <div class="flexbox">
    1.37 +      <div>aaa<span style="float: right">rrr</span>bbb</div>
    1.38 +    </div>
    1.39 +
    1.40 +    <!-- These cases have a floated div as a grandchild of the flex container.
    1.41 +         The div should float within its flex item. -->
    1.42 +    <div class="flexbox">
    1.43 +      <div>aaa<div style="float: left">lll</div>bbb</div>
    1.44 +    </div>
    1.45 +    <div class="flexbox">
    1.46 +      <div>aaa<div style="float: right">rrr</div>bbb</div>
    1.47 +    </div>
    1.48 +  </body>
    1.49 +</html>

mercurial