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-2.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,61 @@ 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 Test: Ensure that min-height is honored for vertical multi-line flex containers</title> 1.12 + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> 1.13 + <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#flex-wrap-property"> 1.14 + <link rel="match" href="flexbox-flex-wrap-vert-2-ref.html"> 1.15 + <meta charset="utf-8"> 1.16 + <style> 1.17 + div.flexbox { 1.18 + display: flex; 1.19 + flex-direction: column; 1.20 + flex-wrap: wrap; 1.21 + border: 1px dashed black; 1.22 + width: 12px; 1.23 + min-height: 100px; 1.24 + margin-right: 2px; 1.25 + float: left; 1.26 + } 1.27 + div.smallItem { 1.28 + height: 30px; 1.29 + border: 1px solid blue; 1.30 + background: lightblue; 1.31 + } 1.32 + </style> 1.33 +</head> 1.34 +<body> 1.35 + 1.36 + <!-- No flex items --> 1.37 + <div class="flexbox"> 1.38 + </div> 1.39 + 1.40 + <!-- Single small flex item --> 1.41 + <div class="flexbox"> 1.42 + <div class="smallItem"></div> 1.43 + </div> 1.44 + 1.45 + <!-- Multiple flex items, larger than flex container's min-size: --> 1.46 + <div class="flexbox"> 1.47 + <div class="smallItem"></div> 1.48 + <div class="smallItem"></div> 1.49 + <div class="smallItem"></div> 1.50 + <div class="smallItem"></div> 1.51 + <div class="smallItem"></div> 1.52 + </div> 1.53 + 1.54 + <!--- ...and now with flex container constrained by both min and max-size --> 1.55 + <div class="flexbox" style="max-height: 120px"> 1.56 + <div class="smallItem"></div> 1.57 + <div class="smallItem"></div> 1.58 + <div class="smallItem"></div> 1.59 + <div class="smallItem"></div> 1.60 + <div class="smallItem"></div> 1.61 + </div> 1.62 + 1.63 +</body> 1.64 +</html>