|
1 <!DOCTYPE html> |
|
2 <!-- |
|
3 Any copyright is dedicated to the Public Domain. |
|
4 http://creativecommons.org/publicdomain/zero/1.0/ |
|
5 --> |
|
6 <html> |
|
7 <head> |
|
8 <title>CSS Reftest Reference</title> |
|
9 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> |
|
10 <style> |
|
11 .flexContainer { |
|
12 background: purple; |
|
13 display: flex; |
|
14 align-items: center; |
|
15 width: 70px; |
|
16 height: 70px; |
|
17 float: left; |
|
18 margin-right: 5px; |
|
19 } |
|
20 .bigItem { |
|
21 background: blue; |
|
22 height: 10px; |
|
23 /* Tall border (taller than our container): */ |
|
24 border: solid coral; |
|
25 border-width: 50px 2px; |
|
26 flex: 3; |
|
27 } |
|
28 .smallItem { |
|
29 background: teal; |
|
30 height: 20px; |
|
31 flex: 1; |
|
32 } |
|
33 .hidden > .bigItem { |
|
34 /* To match the testcase's "overflow:hidden"-cropped flex item, we |
|
35 just use a smaller border that exactly fits our container (and |
|
36 doesn't overflow). */ |
|
37 border-width: 30px 2px; |
|
38 } |
|
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> |