layout/reftests/w3c-css/submitted/flexbox/flexbox-collapsed-item-horiz-2-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-collapsed-item-horiz-2-ref.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,108 @@
     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 +    .flexContainer {
    1.16 +      display: flex;
    1.17 +      flex-wrap: wrap;
    1.18 +
    1.19 +      /* These let us show where each flex line begins (and hence, how tall
    1.20 +         the flex lines end up) */
    1.21 +      align-content: flex-start;
    1.22 +      align-items: flex-start;
    1.23 +
    1.24 +      width: 30px;
    1.25 +      background: yellow;
    1.26 +      border: 1px dotted black;
    1.27 +      float: left;
    1.28 +      margin: 5px;
    1.29 +    }
    1.30 +    .collapsedItem {
    1.31 +      width: 0;
    1.32 +      height: 25px;
    1.33 +    }
    1.34 +    .halfWidthItem {
    1.35 +      width: 15px;
    1.36 +      height: 15px;
    1.37 +      background: teal;
    1.38 +    }
    1.39 +    .fullWidthItem {
    1.40 +      width: 30px;
    1.41 +      height: 20px;
    1.42 +      background: purple;
    1.43 +    }
    1.44 +    .veryTallItem {
    1.45 +      width: 15px;
    1.46 +      height: 40px;
    1.47 +      background: olive;
    1.48 +    }
    1.49 +  </style>
    1.50 +</head>
    1.51 +<body>
    1.52 +  <!-- FIRST ROW: -->
    1.53 +  <!-- One collapsed flex item, at the beginning of a flex line, which
    1.54 +       ends up establishing its flex line's cross size: -->
    1.55 +  <div class="flexContainer">
    1.56 +    <div class="collapsedItem"></div>
    1.57 +    <div class="halfWidthItem"></div>
    1.58 +    <div class="fullWidthItem"></div>
    1.59 +  </div>
    1.60 +  <!-- ...and now with it being at the end of that flex line: -->
    1.61 +  <div class="flexContainer">
    1.62 +    <div class="halfWidthItem"></div>
    1.63 +    <div class="collapsedItem"></div>
    1.64 +    <div class="fullWidthItem"></div>
    1.65 +  </div>
    1.66 +
    1.67 +  <div style="clear: both"></div>
    1.68 +
    1.69 +  <!-- SECOND ROW: -->
    1.70 +  <!-- One collapsed flex item, initially in its own line. It ends
    1.71 +       up being merged into another line after it collapses, due to its
    1.72 +       (post-collapse) zero main-size. -->
    1.73 +  <div class="flexContainer">
    1.74 +    <div class="collapsedItem"></div>
    1.75 +    <div class="fullWidthItem"></div>
    1.76 +    <div class="fullWidthItem"></div>
    1.77 +  </div>
    1.78 +  <div class="flexContainer">
    1.79 +    <div class="fullWidthItem"></div>
    1.80 +    <div class="collapsedItem"></div>
    1.81 +    <div class="fullWidthItem"></div>
    1.82 +  </div>
    1.83 +  <div class="flexContainer">
    1.84 +    <div class="fullWidthItem"></div>
    1.85 +    <div class="fullWidthItem"></div>
    1.86 +    <div class="collapsedItem"></div>
    1.87 +  </div>
    1.88 +
    1.89 +  <div style="clear: both"></div>
    1.90 +
    1.91 +  <!-- THIRD ROW: -->
    1.92 +  <!-- One collapsed flex item, initially in a line with an even-taller item.
    1.93 +       The collapsed item ends up shifting into another line after it
    1.94 +       collapses, but it carries the taller item's cross size with it, as its
    1.95 +       strut size. -->
    1.96 +  <div class="flexContainer">
    1.97 +    <div class="fullWidthItem"></div>
    1.98 +    <div class="collapsedItem" style="height: 40px"></div>
    1.99 +    <div class="veryTallItem"></div>
   1.100 +  </div>
   1.101 +  <!-- ...and now with two (differently-sized) struts in first line:
   1.102 +       (the one that's taller - due to being initially grouped with the tall
   1.103 +       item - wins out.) -->
   1.104 +  <div class="flexContainer">
   1.105 +    <div class="collapsedItem"></div>
   1.106 +    <div class="fullWidthItem"></div>
   1.107 +    <div class="collapsedItem" style="height: 40px"></div>
   1.108 +    <div class="veryTallItem"></div>
   1.109 +  </div>
   1.110 +</body>
   1.111 +</html>

mercurial