layout/reftests/flexbox/flexbox-float-1a.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/flexbox/flexbox-float-1a.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,47 @@
     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 direct child of a flexbox won't
    1.11 +     actually cause it to be floated.
    1.12 +-->
    1.13 +<html xmlns="http://www.w3.org/1999/xhtml">
    1.14 +  <head>
    1.15 +    <style>
    1.16 +      div.flexbox {
    1.17 +        display: flex;
    1.18 +        width: 400px;
    1.19 +        margin-bottom: 2px;
    1.20 +        font-family: sans-serif;
    1.21 +        background: lightgreen;
    1.22 +        justify-content: space-around;
    1.23 +      }
    1.24 +    </style>
    1.25 +  </head>
    1.26 +  <body>
    1.27 +    <!-- These cases have a span as a direct child of the flexbox. The span
    1.28 +         should become display:block (and hence form its own flex item),
    1.29 +         but it shouldn't actually float.
    1.30 +      -->
    1.31 +    <div class="flexbox">
    1.32 +      aaa<span style="float: left">[[[</span>bbb
    1.33 +    </div>
    1.34 +    <div class="flexbox">
    1.35 +      aaa<span style="float: right">]]]</span>bbb
    1.36 +    </div>
    1.37 +    <div class="flexbox">
    1.38 +      aaa<span style="float: left">[[[</span>
    1.39 +    </div>
    1.40 +    <div class="flexbox">
    1.41 +      aaa<span style="float: right">]]]</span>
    1.42 +    </div>
    1.43 +    <div class="flexbox">
    1.44 +      <span style="float: left">[[[</span>bbb
    1.45 +    </div>
    1.46 +    <div class="flexbox">
    1.47 +      <span style="float: right">]]]</span>bbb
    1.48 +    </div>
    1.49 +  </body>
    1.50 +</html>

mercurial