|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <!-- |
|
3 Any copyright is dedicated to the Public Domain. |
|
4 http://creativecommons.org/publicdomain/zero/1.0/ |
|
5 --> |
|
6 <!-- Reference case for behavior of the 'baseline' value for align-items and |
|
7 align-self, in a multi-line flex container. |
|
8 |
|
9 This reference case just consists of three single-line flex containers, |
|
10 to match the testcase's one flex container with three flex lines. |
|
11 --> |
|
12 <html xmlns="http://www.w3.org/1999/xhtml"> |
|
13 <head> |
|
14 <title>CSS Reftest Reference</title> |
|
15 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/> |
|
16 <style> |
|
17 .flexbox { |
|
18 display: flex; |
|
19 align-items: baseline; |
|
20 width: 90px; |
|
21 } |
|
22 |
|
23 .flexbox > * { |
|
24 width: 28px; |
|
25 background: yellow; |
|
26 border: 1px solid black; |
|
27 } |
|
28 |
|
29 .big { font: 24px sans-serif; } |
|
30 .medium { font: 14px sans-serif; } |
|
31 .small { font: 8px sans-serif; } |
|
32 |
|
33 </style> |
|
34 </head> |
|
35 <body> |
|
36 <!-- Note: The lines are reversed here with respect to the testcase, |
|
37 due to the testcase's "wrap-reverse". --> |
|
38 <div class="flexbox"> |
|
39 <!-- Third flex line: other margin/padding amounts on each item --> |
|
40 <div class="small" style="margin-top: 20px">g</div> |
|
41 <div class="big">h</div> |
|
42 <div class="medium" style="padding-bottom: 6px">i</div> |
|
43 </div> |
|
44 <div class="flexbox"> |
|
45 <!-- Second flex line: different margin/padding amounts on each item, |
|
46 and one non-baseline-aligned item.--> |
|
47 <div class="medium" style="padding-top: 10px">d</div> |
|
48 <div class="medium" style="margin-bottom: 8px">e</div> |
|
49 <div class="medium" style="align-self: stretch">f</div> |
|
50 </div> |
|
51 <div class="flexbox"> |
|
52 <!-- First flex line: Just 3 different sizes of text --> |
|
53 <div class="big">a</div> |
|
54 <div class="small">b</div> |
|
55 <div class="medium">c</div> |
|
56 </div> |
|
57 </body> |
|
58 </html> |