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