|
1 <!DOCTYPE html> |
|
2 <!-- |
|
3 Any copyright is dedicated to the Public Domain. |
|
4 http://creativecommons.org/publicdomain/zero/1.0/ |
|
5 --> |
|
6 <!-- Testcase for how we compute the baseline of a horizontal flex container |
|
7 with several flex items, none of which have "align-self:baseline". The |
|
8 spec says this about this case: |
|
9 ...if the flex container has at least one flex item, and its |
|
10 first flex item has a baseline parallel to the flex |
|
11 container's main axis, the flex container's main-axis |
|
12 baseline is that baseline. |
|
13 --> |
|
14 <html> |
|
15 <head> |
|
16 <title>CSS Test: Testing the baseline of a horizontal flex container whose flex items are not baseline-aligned</title> |
|
17 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> |
|
18 <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#flex-baselines"> |
|
19 <link rel="match" href="flexbox-baseline-multi-item-horiz-1-ref.html"> |
|
20 <meta charset="utf-8"> |
|
21 <style> |
|
22 .flexContainer { |
|
23 display: inline-flex; |
|
24 background: lightblue; |
|
25 } |
|
26 .smallFont { |
|
27 font-size: 10px; |
|
28 line-height: 10px; |
|
29 } |
|
30 .bigFont { |
|
31 font-size: 20px; |
|
32 line-height: 20px; |
|
33 } |
|
34 </style> |
|
35 </head> |
|
36 <body> |
|
37 a |
|
38 <div class="flexContainer"> |
|
39 <div class="smallFont">b</div |
|
40 ><div class="bigFont">c</div> |
|
41 </div> |
|
42 <div class="flexContainer"> |
|
43 <div class="bigFont">d</div |
|
44 ><div class="smallFont">e</div> |
|
45 </div> |
|
46 </body> |
|
47 </html> |