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