Thu, 15 Jan 2015 21:13:52 +0100
Remove forgotten relic of ABI crash risk averse overloaded method change.
michael@0 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
michael@0 | 2 | <!-- |
michael@0 | 3 | Any copyright is dedicated to the Public Domain. |
michael@0 | 4 | http://creativecommons.org/publicdomain/zero/1.0/ |
michael@0 | 5 | --> |
michael@0 | 6 | <!-- Reference case for align-items / align-self behavior, using blocks in |
michael@0 | 7 | place of flex items and using float and width keywords to emulate the |
michael@0 | 8 | align-items / align-self properties. --> |
michael@0 | 9 | <html xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 10 | <head> |
michael@0 | 11 | <title>CSS Reftest Reference</title> |
michael@0 | 12 | <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/> |
michael@0 | 13 | <style> |
michael@0 | 14 | .flexbox { |
michael@0 | 15 | border: 1px dashed blue; |
michael@0 | 16 | width: 200px; |
michael@0 | 17 | font-size: 10px; |
michael@0 | 18 | } |
michael@0 | 19 | |
michael@0 | 20 | div.big { |
michael@0 | 21 | font-size: 20px; |
michael@0 | 22 | width: 50px; |
michael@0 | 23 | } |
michael@0 | 24 | |
michael@0 | 25 | .flexbox > * { |
michael@0 | 26 | clear: both; |
michael@0 | 27 | } |
michael@0 | 28 | |
michael@0 | 29 | /* Classes for each of the various align-self values */ |
michael@0 | 30 | .flex-start { |
michael@0 | 31 | background: lime; |
michael@0 | 32 | float: left; |
michael@0 | 33 | } |
michael@0 | 34 | .flex-end { |
michael@0 | 35 | background: orange; |
michael@0 | 36 | float: right; |
michael@0 | 37 | } |
michael@0 | 38 | .center { |
michael@0 | 39 | background: lightblue; |
michael@0 | 40 | margin: auto; |
michael@0 | 41 | } |
michael@0 | 42 | .baseline { |
michael@0 | 43 | background: teal; |
michael@0 | 44 | float: left; |
michael@0 | 45 | } |
michael@0 | 46 | .stretch { |
michael@0 | 47 | background: pink; |
michael@0 | 48 | width: 100%; |
michael@0 | 49 | } |
michael@0 | 50 | .auto { |
michael@0 | 51 | background: yellow; |
michael@0 | 52 | margin: auto; |
michael@0 | 53 | } |
michael@0 | 54 | .unspecified { |
michael@0 | 55 | background: lightgreen; |
michael@0 | 56 | margin: auto; |
michael@0 | 57 | } |
michael@0 | 58 | .initial { |
michael@0 | 59 | background: aqua; |
michael@0 | 60 | margin: auto; |
michael@0 | 61 | } |
michael@0 | 62 | .inherit { |
michael@0 | 63 | background: violet; |
michael@0 | 64 | float: right; |
michael@0 | 65 | } |
michael@0 | 66 | |
michael@0 | 67 | <!-- We center shrinkwrapped text by putting it into an inline-block, and |
michael@0 | 68 | then wrapping that inline-block in a helper-div that has |
michael@0 | 69 | "text-align:center" set. --> |
michael@0 | 70 | .centerParent { |
michael@0 | 71 | text-align: center; |
michael@0 | 72 | } |
michael@0 | 73 | .centerParent > * { |
michael@0 | 74 | display: inline-block; |
michael@0 | 75 | text-align: left; /* Keep parent's centering from tweaking my text */ |
michael@0 | 76 | } |
michael@0 | 77 | </style> |
michael@0 | 78 | </head> |
michael@0 | 79 | <body> |
michael@0 | 80 | <div class="flexbox"> |
michael@0 | 81 | <div class="flex-start">start</div> |
michael@0 | 82 | <div class="flex-start big">a b c d e f</div> |
michael@0 | 83 | <div class="flex-end">end</div> |
michael@0 | 84 | <div class="flex-end big">a b c d e f</div> |
michael@0 | 85 | <div class="centerParent"> |
michael@0 | 86 | <div class="center">center</div> |
michael@0 | 87 | </div> |
michael@0 | 88 | <div class="center big">a b c d e f</div> |
michael@0 | 89 | <div class="baseline">base</div> |
michael@0 | 90 | <div class="baseline big">abc</div> |
michael@0 | 91 | <div class="stretch">stretch</div> |
michael@0 | 92 | <div class="stretch big">a b c d e f</div> |
michael@0 | 93 | <div class="centerParent"> |
michael@0 | 94 | <div class="auto">auto</div> |
michael@0 | 95 | </div> |
michael@0 | 96 | <div class="centerParent"> |
michael@0 | 97 | <div class="unspecified">unspec</div> |
michael@0 | 98 | </div> |
michael@0 | 99 | <div class="centerParent"> |
michael@0 | 100 | <div class="initial">initial</div> |
michael@0 | 101 | </div> |
michael@0 | 102 | <div class="inherit">inherit</div> |
michael@0 | 103 | <!-- Since that last div is floated right, the container doesn't include |
michael@0 | 104 | its height by default. So we add some invisible hacky text (of the |
michael@0 | 105 | same font) to make sure our container is tall enough. --> |
michael@0 | 106 | <span style="visibility:hidden">hacky text</span> |
michael@0 | 107 | </div> |
michael@0 | 108 | </body> |
michael@0 | 109 | </html> |