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

mercurial