1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/flexbox/pagination/flexbox-unbreakable-child-1c-wrap.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,69 @@ 1.4 +<!DOCTYPE html> 1.5 +<!-- Any copyright is dedicated to the Public Domain. 1.6 + http://creativecommons.org/publicdomain/zero/1.0/ --> 1.7 +<!-- Testcase for how we fragment a flex container with a single unbreakable 1.8 + child, with the flex container having "flex-direction: column" and 1.9 + "flex-wrap: wrap". 1.10 +--> 1.11 +<html> 1.12 + <head> 1.13 + <style> 1.14 + .multicol { 1.15 + height: 10px; 1.16 + width: 100px; 1.17 + -moz-column-width: 20px; 1.18 + -moz-column-fill: auto; 1.19 + border: 2px solid orange; 1.20 + margin-bottom: 15px; /* (just for spacing between testcases) */ 1.21 + } 1.22 + .flexContainer { 1.23 + display: flex; 1.24 + flex-direction: column; 1.25 + flex-wrap: wrap; 1.26 + background: teal; 1.27 + border: 1px dashed black; 1.28 + } 1.29 + .item { 1.30 + width: 100%; 1.31 + height: 20px; 1.32 + flex: none; 1.33 + } 1.34 + </style> 1.35 + </head> 1.36 + <body> 1.37 + <!-- auto-height container: --> 1.38 + <div class="multicol"> 1.39 + <div class="flexContainer"> 1.40 + <img src="" class="item"> 1.41 + </div> 1.42 + </div> 1.43 + 1.44 + <!-- fixed-height container, smaller than available height: --> 1.45 + <div class="multicol"> 1.46 + <div class="flexContainer" style="height: 8px"> 1.47 + <img src="" class="item"> 1.48 + </div> 1.49 + </div> 1.50 + 1.51 + <!-- fixed-height container, between available height and child height: --> 1.52 + <div class="multicol"> 1.53 + <div class="flexContainer" style="height: 15px"> 1.54 + <img src="" class="item"> 1.55 + </div> 1.56 + </div> 1.57 + 1.58 + <!-- fixed-height container, same as child height: --> 1.59 + <div class="multicol"> 1.60 + <div class="flexContainer" style="height: 20px"> 1.61 + <img src="" class="item"> 1.62 + </div> 1.63 + </div> 1.64 + 1.65 + <!-- fixed-height container, larger than child height: --> 1.66 + <div class="multicol"> 1.67 + <div class="flexContainer" style="height: 24px"> 1.68 + <img src="" class="item"> 1.69 + </div> 1.70 + </div> 1.71 + </body> 1.72 +</html>