|
1 <!DOCTYPE html> |
|
2 <!-- |
|
3 Any copyright is dedicated to the Public Domain. |
|
4 http://creativecommons.org/publicdomain/zero/1.0/ |
|
5 --> |
|
6 <!-- Reference case where we've swapped in actual divs (fakeBefore/fakeAfter) |
|
7 for the testcase's ::before and ::after generated content. |
|
8 |
|
9 fakeBefore div is always the first child; fakeAfter is always the last. |
|
10 --> |
|
11 <html> |
|
12 <head> |
|
13 <title>CSS Reftest Reference</title> |
|
14 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> |
|
15 <meta charset="utf-8"> |
|
16 <style> |
|
17 .flexContainer { |
|
18 display: flex; |
|
19 align-items: flex-end; |
|
20 justify-content: space-between; |
|
21 height: 50px; |
|
22 width: 300px; |
|
23 margin-bottom: 2px; |
|
24 background: lightgray; |
|
25 } |
|
26 .fakeBefore { |
|
27 content: 'b'; |
|
28 background: yellow; |
|
29 } |
|
30 .fakeAfter { |
|
31 content: 'a'; |
|
32 background: lightblue; |
|
33 } |
|
34 </style> |
|
35 </head> |
|
36 <body> |
|
37 <div class="flexContainer"> |
|
38 <div class="fakeBefore">b</div> |
|
39 x |
|
40 <div>y</div> |
|
41 z |
|
42 </div> |
|
43 <div class="flexContainer"> |
|
44 x |
|
45 <div>y</div> |
|
46 z |
|
47 <div class="fakeAfter">a</div> |
|
48 </div> |
|
49 <div class="flexContainer"> |
|
50 <div class="fakeBefore">b</div> |
|
51 x |
|
52 <div>y</div> |
|
53 z |
|
54 <div class="fakeAfter">a</div> |
|
55 </div> |
|
56 </body> |
|
57 </html> |