layout/reftests/flexbox/pagination/flexbox-unbreakable-child-2.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/flexbox/pagination/flexbox-unbreakable-child-2.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,82 @@
     1.4 +<!DOCTYPE html>
     1.5 +<!-- Any copyright is dedicated to the Public Domain.
     1.6 +     http://creativecommons.org/publicdomain/zero/1.0/ -->
     1.7 +<!-- Testcase for how we fragment a flex container with several children in a
     1.8 +     multi-line vertical flexbox.
     1.9 +-->
    1.10 +<html>
    1.11 +  <head>
    1.12 +    <style>
    1.13 +    .multicol {
    1.14 +      height: 40px;
    1.15 +      width: 100px;
    1.16 +      -moz-column-width: 60px;
    1.17 +      -moz-column-fill: auto;
    1.18 +      border: 2px solid purple;
    1.19 +      margin-bottom: 15px; /* (just for spacing between testcases) */
    1.20 +    }
    1.21 +    .flexContainer {
    1.22 +      display: flex;
    1.23 +      flex-direction: column;
    1.24 +      flex-wrap: wrap;
    1.25 +      align-content: flex-start;
    1.26 +      background: yellow;
    1.27 +      border: 1px dashed black;
    1.28 +    }
    1.29 +    .item {
    1.30 +      width: 40px;
    1.31 +      height: 15px;
    1.32 +      border: 1px dotted teal;
    1.33 +      margin: 1px;
    1.34 +      font: 10px;
    1.35 +    }
    1.36 +    </style>
    1.37 +  </head>
    1.38 +  <body>
    1.39 +    <!-- auto-height container: -->
    1.40 +    <div class="multicol">
    1.41 +      <div class="flexContainer">
    1.42 +        <div class="item">1</div>
    1.43 +        <div class="item">2</div>
    1.44 +        <div class="item">3</div>
    1.45 +      </div>
    1.46 +    </div>
    1.47 +
    1.48 +    <!-- auto-height container, with enough children that our last flex line
    1.49 +         overflows (in the cross axis) -->
    1.50 +    <!-- XXXdholbert Ultimately (in bug 939897 probably) we should push the
    1.51 +         overflowing flex line to a continuation of the flex container -->
    1.52 +    <div class="multicol">
    1.53 +      <div class="flexContainer">
    1.54 +        <div class="item">1</div>
    1.55 +        <div class="item">2</div>
    1.56 +        <div class="item">3</div>
    1.57 +        <div class="item">4</div>
    1.58 +        <div class="item">5</div>
    1.59 +      </div>
    1.60 +    </div>
    1.61 +
    1.62 +    <!-- fixed-height container-->
    1.63 +    <div class="multicol">
    1.64 +      <div class="flexContainer" style="height: 70px">
    1.65 +        <div class="item">1</div>
    1.66 +        <div class="item">2</div>
    1.67 +        <div class="item">3</div>
    1.68 +      </div>
    1.69 +    </div>
    1.70 +
    1.71 +    <!-- fixed-height container, with enough children that our last flex line
    1.72 +         overflows (in the cross axis) -->
    1.73 +    <!-- XXXdholbert Ultimately (in bug 939897 probably) we should push the
    1.74 +         overflowing flex line to a continuation of the flex container -->
    1.75 +    <div class="multicol">
    1.76 +      <div class="flexContainer" style="height: 70px">
    1.77 +        <div class="item">1</div>
    1.78 +        <div class="item">2</div>
    1.79 +        <div class="item">3</div>
    1.80 +        <div class="item">4</div>
    1.81 +        <div class="item">5</div>
    1.82 +      </div>
    1.83 +    </div>
    1.84 +  </body>
    1.85 +</html>

mercurial