|
1 <!DOCTYPE html> |
|
2 <!-- |
|
3 Any copyright is dedicated to the Public Domain. |
|
4 http://creativecommons.org/publicdomain/zero/1.0/ |
|
5 --> |
|
6 <!-- This testcase checks that we honor "align-content" on a vertical |
|
7 flex container that has "overflow:hidden". We use a large flex item, |
|
8 large enough that it overflows the container in the main axis, to be |
|
9 sure that "overflow: hidden" is actually applying. --> |
|
10 <html> |
|
11 <head> |
|
12 <title>CSS Test: Testing 'overflow' property on a vertical flex container, with 'align-content: space-around'</title> |
|
13 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> |
|
14 <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#align-content-property"> |
|
15 <link rel="match" href="flexbox-overflow-vert-5-ref.html"> |
|
16 <style> |
|
17 .flexContainer { |
|
18 background: purple; |
|
19 display: flex; |
|
20 flex-direction: column; |
|
21 flex-wrap: wrap; |
|
22 align-content: space-around; |
|
23 width: 70px; |
|
24 height: 70px; |
|
25 margin-bottom: 5px; |
|
26 } |
|
27 .bigItem { |
|
28 background: blue; |
|
29 flex: none; /* prevent shrinking (so we can intentionally overflow) */ |
|
30 width: 20px; |
|
31 height: 72px; |
|
32 } |
|
33 .smallItem { |
|
34 background: teal; |
|
35 width: 20px; |
|
36 height: 20px; |
|
37 } |
|
38 .hidden { overflow: hidden } |
|
39 </style> |
|
40 </head> |
|
41 <body> |
|
42 <div class="flexContainer"><!-- (overflow un-set) --> |
|
43 <div class="bigItem"></div> |
|
44 <div class="smallItem"></div> |
|
45 </div> |
|
46 <div class="flexContainer hidden"> |
|
47 <div class="bigItem"></div> |
|
48 <div class="smallItem"></div> |
|
49 </div> |
|
50 </body> |
|
51 </html> |