layout/reftests/w3c-css/submitted/flexbox/flexbox-flex-wrap-vert-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-flex-wrap-vert-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,99 @@
     1.4 +<!DOCTYPE html>
     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 +<html>
    1.10 +<head>
    1.11 +  <title>CSS Test: Testing flex-wrap in vertical flex containers</title>
    1.12 +  <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
    1.13 +  <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#flex-wrap-property">
    1.14 +  <link rel="match" href="flexbox-flex-wrap-vert-1-ref.html">
    1.15 +  <meta charset="utf-8">
    1.16 +  <style>
    1.17 +    div.flexbox {
    1.18 +      display: flex;
    1.19 +      flex-direction: column;
    1.20 +      flex-wrap: wrap;
    1.21 +      border: 1px dashed black;
    1.22 +      width: 12px;
    1.23 +      height: 100px;
    1.24 +      margin-right: 2px;
    1.25 +      float: left;
    1.26 +    }
    1.27 +    div.halfMainSize {
    1.28 +      height: 48px;
    1.29 +      border: 1px solid blue;
    1.30 +      background: lightblue;
    1.31 +    }
    1.32 +    div.hugeMainSize {
    1.33 +      height: 148px;
    1.34 +      border: 1px solid purple;
    1.35 +      background: fuchsia;
    1.36 +    }
    1.37 +  </style>
    1.38 +</head>
    1.39 +<body>
    1.40 +
    1.41 +  <!-- Single small flex item -->
    1.42 +  <div class="flexbox">
    1.43 +    <div class="halfMainSize"></div>
    1.44 +  </div>
    1.45 +
    1.46 +  <!-- Single small flex item with 'margin-top' set to push it to protrude
    1.47 +       from the far edge of the container (and to shrink as a result) -->
    1.48 +  <div class="flexbox">
    1.49 +    <div class="halfMainSize" style="margin-top: 80px"></div>
    1.50 +  </div>
    1.51 +
    1.52 +  <!-- Single small inflexible flex item with 'margin-top' set to push it to
    1.53 +       protrude from the far edge of the container -->
    1.54 +  <div class="flexbox">
    1.55 +    <div class="halfMainSize" style="margin-top: 80px; flex: none"></div>
    1.56 +  </div>
    1.57 +
    1.58 +  <!-- Two flex items, exactly large enough to fit in line (no wrapping): -->
    1.59 +  <div class="flexbox">
    1.60 +    <div class="halfMainSize"></div>
    1.61 +    <div class="halfMainSize"></div>
    1.62 +  </div>
    1.63 +
    1.64 +  <!-- and now with some margin on first item, to force second item to wrap: -->
    1.65 +  <div class="flexbox">
    1.66 +    <div class="halfMainSize" style="margin-bottom: 1px"></div>
    1.67 +    <div class="halfMainSize"></div>
    1.68 +  </div>
    1.69 +
    1.70 +  <!-- and now with some margin on second item, again forcing it to wrap: -->
    1.71 +  <div class="flexbox">
    1.72 +    <div class="halfMainSize"></div>
    1.73 +    <div class="halfMainSize" style="margin-bottom: 1px"></div>
    1.74 +  </div>
    1.75 +
    1.76 +  <!-- Single large flex item: overflows (but does not wrap) and is shrunk
    1.77 +       to fit container's main-size -->
    1.78 +  <div class="flexbox">
    1.79 +    <div class="hugeMainSize"></div>
    1.80 +  </div>
    1.81 +
    1.82 +  <!-- Single large flex item: overflows (but does not wrap) -->
    1.83 +  <div class="flexbox">
    1.84 +    <div class="hugeMainSize" style="flex: none"></div>
    1.85 +  </div>
    1.86 +
    1.87 +  <!-- Small flex item, followed by large flex item (which wraps to
    1.88 +       its own line and then shrink to container's main-size) -->
    1.89 +  <div class="flexbox">
    1.90 +    <div class="halfMainSize"></div>
    1.91 +    <div class="hugeMainSize"></div>
    1.92 +  </div>
    1.93 +
    1.94 +  <!-- Small flex item, followed by large inflexible flex item (which wraps to
    1.95 +       its own line and then shrink to container's main-size) -->
    1.96 +  <div class="flexbox">
    1.97 +    <div class="halfMainSize"></div>
    1.98 +    <div class="hugeMainSize" style="flex: none"></div>
    1.99 +  </div>
   1.100 +
   1.101 +</body>
   1.102 +</html>

mercurial