1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-flex-flow-2-ref.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,133 @@ 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: 18px; 1.33 + } 1.34 + .singleLineVert > * { 1.35 + height: 18px; 1.36 + float: none; 1.37 + } 1.38 + .hidden { 1.39 + /* We use this to hide the "4" box in each of the multi-line chunks. 1.40 + The testcase has 3 flex items in each flex container, but it's easier 1.41 + to write this reference case w/ a hidden 4th box as a space-filler. */ 1.42 + visibility: hidden; 1.43 + } 1.44 + </style> 1.45 +</head> 1.46 +<body> 1.47 + <!-- single-line (flex-wrap unspecified): --> 1.48 + <div class="flexContainer singleLineHoriz"><!-- flex-flow: row --> 1.49 + <div>1</div><div>2</div><div>3</div> 1.50 + </div> 1.51 + <div class="flexContainer singleLineHoriz"><!-- flex-flow: row-reverse --> 1.52 + <div>3</div><div>2</div><div>1</div> 1.53 + </div> 1.54 + <div class="flexContainer singleLineVert"><!-- flex-flow: column --> 1.55 + <div>1</div><div>2</div><div>3</div> 1.56 + </div> 1.57 + <div class="flexContainer singleLineVert"><!-- flex-flow: column-reverse --> 1.58 + <div>3</div><div>2</div><div>1</div> 1.59 + </div> 1.60 + 1.61 + <div style="clear:both"></div> 1.62 + 1.63 + <!-- now using "wrap", after flex-direction: --> 1.64 + <div class="flexContainer"><!-- flex-flow: row wrap --> 1.65 + <div>1</div><div>2</div><div>3</div><div class="hidden">4</div> 1.66 + </div> 1.67 + <div class="flexContainer"><!-- flex-flow: row-reverse wrap --> 1.68 + <div>2</div><div>1</div><div class="hidden">4</div><div>3</div> 1.69 + </div> 1.70 + <div class="flexContainer"><!-- flex-flow: column wrap --> 1.71 + <div>1</div><div>3</div><div>2</div><div class="hidden">4</div> 1.72 + </div> 1.73 + <div class="flexContainer"><!-- flex-flow: column-reverse wrap --> 1.74 + <div>2</div><div class="hidden">4</div><div>1</div><div>3</div> 1.75 + </div> 1.76 + 1.77 + <div style="clear:both"></div> 1.78 + 1.79 + <!-- now using "wrap", before flex-direction: --> 1.80 + <div class="flexContainer"><!-- flex-flow: wrap row --> 1.81 + <div>1</div><div>2</div><div>3</div><div class="hidden">4</div> 1.82 + </div> 1.83 + <div class="flexContainer"><!-- flex-flow: wrap row-reverse --> 1.84 + <div>2</div><div>1</div><div class="hidden">4</div><div>3</div> 1.85 + </div> 1.86 + <div class="flexContainer"><!-- flex-flow: wrap column --> 1.87 + <div>1</div><div>3</div><div>2</div><div class="hidden">4</div> 1.88 + </div> 1.89 + <div class="flexContainer"><!-- flex-flow: wrap column-reverse --> 1.90 + <div>2</div><div class="hidden">4</div><div>1</div><div>3</div> 1.91 + </div> 1.92 + 1.93 + <div style="clear:both"></div> 1.94 + 1.95 + <!-- now using "wrap-reverse", after flex-direction: --> 1.96 + <div class="flexContainer"><!-- flex-flow: row wrap-reverse --> 1.97 + <div>3</div><div class="hidden">4</div><div>1</div><div>2</div> 1.98 + </div> 1.99 + <div class="flexContainer"><!-- flex-flow: row-reverse wrap-reverse --> 1.100 + <div class="hidden">4</div><div>3</div><div>2</div><div>1</div> 1.101 + </div> 1.102 + <div class="flexContainer"><!-- flex-flow: column wrap-reverse --> 1.103 + <div>3</div><div>1</div><div class="hidden">4</div><div>2</div> 1.104 + </div> 1.105 + <div class="flexContainer"><!-- flex-flow: column-reverse wrap-reverse --> 1.106 + <div class="hidden">4</div><div>2</div><div>3</div><div>1</div> 1.107 + </div> 1.108 + 1.109 + <div style="clear:both"></div> 1.110 + 1.111 + <!-- now using "wrap-reverse", before flex-direction: --> 1.112 + <div class="flexContainer"><!-- flex-flow: wrap-reverse row --> 1.113 + <div>3</div><div class="hidden">4</div><div>1</div><div>2</div> 1.114 + </div> 1.115 + <div class="flexContainer"><!-- flex-flow: wrap-reverse row-reverse --> 1.116 + <div class="hidden">4</div><div>3</div><div>2</div><div>1</div> 1.117 + </div> 1.118 + <div class="flexContainer"> <!-- flex-flow: wrap-reverse column --> 1.119 + <div>3</div><div>1</div><div class="hidden">4</div><div>2</div> 1.120 + </div> 1.121 + <div class="flexContainer"><!-- flex-flow: wrap-reverse column-reverse --> 1.122 + <div class="hidden">4</div><div>2</div><div>3</div><div>1</div> 1.123 + </div> 1.124 + 1.125 + <div style="clear:both"></div> 1.126 + 1.127 + <!-- now just specifying flex-wrap (no flex-direction) --> 1.128 + <div class="flexContainer"><!-- flex-flow: wrap --> 1.129 + <div>1</div><div>2</div><div>3</div><div class="hidden">4</div> 1.130 + </div> 1.131 + <div class="flexContainer"><!-- flex-flow: wrap-reverse --> 1.132 + <div>3</div><div class="hidden">4</div><div>1</div><div>2</div> 1.133 + </div> 1.134 + 1.135 +</body> 1.136 +</html>