OLD | NEW |
(Empty) | |
| 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 align-items / align-self behavior with auto |
| 7 margins in play. This reference case uses fixed margin-top values |
| 8 in place of the testcase's auto margins. --> |
| 9 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 10 <head> |
| 11 <title>CSS Reftest Reference</title> |
| 12 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"
/> |
| 13 <style> |
| 14 .flexbox { |
| 15 border: 1px dashed blue; |
| 16 height: 140px; |
| 17 width: 400px; |
| 18 display: flex; |
| 19 font-size: 10px; |
| 20 line-height: 10px; |
| 21 margin-bottom: 10px; |
| 22 } |
| 23 |
| 24 .kidsAutoTop > div { margin-top: 130px; } |
| 25 .kidsAutoTop > div.big { margin-top: 60px; } |
| 26 .kidsAutoBoth > div { margin-top: 65px; } |
| 27 .kidsAutoBoth > div.big { margin-top: 30px; } |
| 28 |
| 29 .flexbox > div { |
| 30 width: 40px; |
| 31 height: 10px; |
| 32 } |
| 33 |
| 34 .flexbox > div.big { |
| 35 height: 80px; |
| 36 font-size: 20px; |
| 37 line-height: 20px; |
| 38 } |
| 39 |
| 40 /* Classes for each of the various align-self values */ |
| 41 .flex-start { |
| 42 background: lime; |
| 43 } |
| 44 .flex-end { |
| 45 background: orange; |
| 46 } |
| 47 .center { |
| 48 background: lightblue; |
| 49 } |
| 50 .baseline { |
| 51 background: teal; |
| 52 } |
| 53 .stretch { |
| 54 background: pink; |
| 55 } |
| 56 </style> |
| 57 </head> |
| 58 <body> |
| 59 <div class="flexbox kidsAutoTop"> |
| 60 <div class="flex-start">start</div> |
| 61 <div class="flex-start big">a b c d e f</div> |
| 62 <div class="flex-end">end</div> |
| 63 <div class="flex-end big">a b c d e f</div> |
| 64 <div class="center">center</div> |
| 65 <div class="center big">a b c d e f</div> |
| 66 <div class="baseline">base</div> |
| 67 <div class="baseline big">a b c d e f</div> |
| 68 <div class="stretch">stretch</div> |
| 69 <div class="stretch big">a b c d e f</div> |
| 70 </div> |
| 71 |
| 72 <div class="flexbox kidsAutoBottom"> |
| 73 <div class="flex-start">start</div> |
| 74 <div class="flex-start big">a b c d e f</div> |
| 75 <div class="flex-end">end</div> |
| 76 <div class="flex-end big">a b c d e f</div> |
| 77 <div class="center">center</div> |
| 78 <div class="center big">a b c d e f</div> |
| 79 <div class="baseline">base</div> |
| 80 <div class="baseline big">a b c d e f</div> |
| 81 <div class="stretch">stretch</div> |
| 82 <div class="stretch big">a b c d e f</div> |
| 83 </div> |
| 84 |
| 85 <div class="flexbox kidsAutoBoth"> |
| 86 <div class="flex-start">start</div> |
| 87 <div class="flex-start big">a b c d e f</div> |
| 88 <div class="flex-end">end</div> |
| 89 <div class="flex-end big">a b c d e f</div> |
| 90 <div class="center">center</div> |
| 91 <div class="center big">a b c d e f</div> |
| 92 <div class="baseline">base</div> |
| 93 <div class="baseline big">a b c d e f</div> |
| 94 <div class="stretch">stretch</div> |
| 95 <div class="stretch big">a b c d e f</div> |
| 96 </div> |
| 97 </body> |
| 98 </html> |
OLD | NEW |