layout/reftests/w3c-css/submitted/flexbox/flexbox-flex-flow-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-flow-1-ref.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,127 @@
     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 +      height: 60px;
    1.17 +      width: 60px;
    1.18 +      font: 10px sans-serif;
    1.19 +      background: yellow;
    1.20 +      float: left;
    1.21 +      border: 1px solid black;
    1.22 +    }
    1.23 +    .flexContainer > * {
    1.24 +      border: 1px dotted gray;
    1.25 +      width: 28px;
    1.26 +      height: 28px;
    1.27 +      float: left;
    1.28 +    }
    1.29 +
    1.30 +    /* The single-line flex containers' flex items are shrunk in main axis: */
    1.31 +    .singleLineHoriz > * {
    1.32 +      width: 13px;
    1.33 +    }
    1.34 +    .singleLineVert  > * {
    1.35 +      height: 13px;
    1.36 +      float: none;
    1.37 +    }
    1.38 +  </style>
    1.39 +</head>
    1.40 +<body>
    1.41 +  <!-- single-line (flex-wrap unspecified): -->
    1.42 +  <div class="flexContainer singleLineHoriz"><!-- flex-flow: row -->
    1.43 +    <div>1</div><div>2</div><div>3</div><div>4</div>
    1.44 +  </div>
    1.45 +  <div class="flexContainer singleLineHoriz"><!-- flex-flow: row-reverse -->
    1.46 +    <div>4</div><div>3</div><div>2</div><div>1</div>
    1.47 +  </div>
    1.48 +  <div class="flexContainer singleLineVert"><!-- flex-flow: column -->
    1.49 +    <div>1</div><div>2</div><div>3</div><div>4</div>
    1.50 +  </div>
    1.51 +  <div class="flexContainer singleLineVert"><!-- flex-flow: column-reverse -->
    1.52 +    <div>4</div><div>3</div><div>2</div><div>1</div>
    1.53 +  </div>
    1.54 +
    1.55 +  <div style="clear:both"></div>
    1.56 +
    1.57 +  <!-- now using "wrap", after flex-direction: -->
    1.58 +  <div class="flexContainer"><!-- flex-flow: row wrap -->
    1.59 +    <div>1</div><div>2</div><div>3</div><div>4</div>
    1.60 +  </div>
    1.61 +  <div class="flexContainer"><!-- flex-flow: row-reverse wrap -->
    1.62 +    <div>2</div><div>1</div><div>4</div><div>3</div>
    1.63 +  </div>
    1.64 +  <div class="flexContainer"><!-- flex-flow: column wrap -->
    1.65 +    <div>1</div><div>3</div><div>2</div><div>4</div>
    1.66 +  </div>
    1.67 +  <div class="flexContainer"><!-- flex-flow: column-reverse wrap -->
    1.68 +    <div>2</div><div>4</div><div>1</div><div>3</div>
    1.69 +  </div>
    1.70 +
    1.71 +  <div style="clear:both"></div>
    1.72 +
    1.73 +  <!-- now using "wrap", before flex-direction: -->
    1.74 +  <div class="flexContainer"><!-- flex-flow: wrap row -->
    1.75 +    <div>1</div><div>2</div><div>3</div><div>4</div>
    1.76 +  </div>
    1.77 +  <div class="flexContainer"><!-- flex-flow: wrap row-reverse -->
    1.78 +    <div>2</div><div>1</div><div>4</div><div>3</div>
    1.79 +  </div>
    1.80 +  <div class="flexContainer"><!-- flex-flow: wrap column -->
    1.81 +    <div>1</div><div>3</div><div>2</div><div>4</div>
    1.82 +  </div>
    1.83 +  <div class="flexContainer"><!-- flex-flow: wrap column-reverse -->
    1.84 +    <div>2</div><div>4</div><div>1</div><div>3</div>
    1.85 +  </div>
    1.86 +
    1.87 +  <div style="clear:both"></div>
    1.88 +
    1.89 +  <!-- now using "wrap-reverse", after flex-direction: -->
    1.90 +  <div class="flexContainer"><!-- flex-flow: row wrap-reverse -->
    1.91 +    <div>3</div><div>4</div><div>1</div><div>2</div>
    1.92 +  </div>
    1.93 +  <div class="flexContainer"><!-- flex-flow: row-reverse wrap-reverse -->
    1.94 +    <div>4</div><div>3</div><div>2</div><div>1</div>
    1.95 +  </div>
    1.96 +  <div class="flexContainer"><!-- flex-flow: column wrap-reverse -->
    1.97 +    <div>3</div><div>1</div><div>4</div><div>2</div>
    1.98 +  </div>
    1.99 +  <div class="flexContainer"><!-- flex-flow: column-reverse wrap-reverse -->
   1.100 +    <div>4</div><div>2</div><div>3</div><div>1</div>
   1.101 +  </div>
   1.102 +
   1.103 +  <div style="clear:both"></div>
   1.104 +
   1.105 +  <!-- now using "wrap-reverse", before flex-direction: -->
   1.106 +  <div class="flexContainer"><!-- flex-flow: wrap-reverse row -->
   1.107 +    <div>3</div><div>4</div><div>1</div><div>2</div>
   1.108 +  </div>
   1.109 +  <div class="flexContainer"><!-- flex-flow: wrap-reverse row-reverse -->
   1.110 +    <div>4</div><div>3</div><div>2</div><div>1</div>
   1.111 +  </div>
   1.112 +  <div class="flexContainer"> <!-- flex-flow: wrap-reverse column -->
   1.113 +    <div>3</div><div>1</div><div>4</div><div>2</div>
   1.114 +  </div>
   1.115 +  <div class="flexContainer"><!-- flex-flow: wrap-reverse column-reverse -->
   1.116 +    <div>4</div><div>2</div><div>3</div><div>1</div>
   1.117 +  </div>
   1.118 +
   1.119 +  <div style="clear:both"></div>
   1.120 +
   1.121 +  <!-- now just specifying flex-wrap (no flex-direction) -->
   1.122 +  <div class="flexContainer"><!-- flex-flow: wrap -->
   1.123 +    <div>1</div><div>2</div><div>3</div><div>4</div>
   1.124 +  </div>
   1.125 +  <div class="flexContainer"><!-- flex-flow: wrap-reverse -->
   1.126 +    <div>3</div><div>4</div><div>1</div><div>2</div>
   1.127 +  </div>
   1.128 +
   1.129 +</body>
   1.130 +</html>

mercurial