|
1 <!DOCTYPE html> |
|
2 <!-- Any copyright is dedicated to the Public Domain. |
|
3 http://creativecommons.org/publicdomain/zero/1.0/ --> |
|
4 <html> |
|
5 <head> |
|
6 <style> |
|
7 .multicol { |
|
8 height: 10px; |
|
9 width: 100px; |
|
10 -moz-column-width: 20px; |
|
11 -moz-column-fill: auto; |
|
12 border: 2px solid orange; |
|
13 margin-bottom: 15px; /* (just for spacing between testcases) */ |
|
14 } |
|
15 .flexContainer { |
|
16 background: teal; |
|
17 border: 1px dashed black; |
|
18 } |
|
19 .item { |
|
20 display: block; |
|
21 width: 100%; |
|
22 height: 20px; |
|
23 } |
|
24 </style> |
|
25 </head> |
|
26 <body> |
|
27 <!-- auto-height container: --> |
|
28 <div class="multicol"> |
|
29 <div class="flexContainer"> |
|
30 <img src="" class="item"> |
|
31 </div> |
|
32 </div> |
|
33 |
|
34 <!-- fixed-height container, smaller than available height: --> |
|
35 <div class="multicol"> |
|
36 <div class="flexContainer" style="height: 8px"> |
|
37 <img src="" class="item"> |
|
38 </div> |
|
39 </div> |
|
40 |
|
41 <!-- fixed-height container, between available height and child height: --> |
|
42 <div class="multicol"> |
|
43 <div class="flexContainer" style="height: 15px"> |
|
44 <img src="" class="item"> |
|
45 </div> |
|
46 </div> |
|
47 |
|
48 <!-- fixed-height container, same as child height: --> |
|
49 <div class="multicol"> |
|
50 <div class="flexContainer" style="height: 20px"> |
|
51 <img src="" class="item"> |
|
52 </div> |
|
53 </div> |
|
54 |
|
55 <!-- fixed-height container, larger than child height: --> |
|
56 <div class="multicol"> |
|
57 <div class="flexContainer" style="height: 24px"> |
|
58 <img src="" class="item"> |
|
59 </div> |
|
60 </div> |
|
61 </body> |
|
62 </html> |