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 | <!-- Testcase for align-items / align-self behavior, with all the possible |
michael@0 | 7 | values included on different items within a flex container, and with the |
michael@0 | 8 | flex container being skinnier than its items, and with "direction: rtl" to |
michael@0 | 9 | swap the horizontal (cross) axis. --> |
michael@0 | 10 | <html xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 11 | <head> |
michael@0 | 12 | <title>CSS Test: Testing the behavior of 'align-self' with a vertical flex container that's skinnier than its items, with margin/padding/border on the items and with 'direction: rtl'</title> |
michael@0 | 13 | <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/> |
michael@0 | 14 | <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#align-items-property"/> |
michael@0 | 15 | <link rel="match" href="flexbox-align-self-vert-rtl-4-ref.xhtml"/> |
michael@0 | 16 | <style> |
michael@0 | 17 | .flexbox { |
michael@0 | 18 | border: 1px dashed blue; |
michael@0 | 19 | width: 4px; |
michael@0 | 20 | display: flex; |
michael@0 | 21 | flex-direction: column; |
michael@0 | 22 | direction: rtl; |
michael@0 | 23 | float: left; |
michael@0 | 24 | font-family: sans-serif; |
michael@0 | 25 | font-size: 10px; |
michael@0 | 26 | margin-left: 80px; |
michael@0 | 27 | } |
michael@0 | 28 | |
michael@0 | 29 | .flexbox > div { |
michael@0 | 30 | margin: 1px 2px 3px 4px; |
michael@0 | 31 | border-width: 2px 3px 4px 5px; |
michael@0 | 32 | padding: 3px 4px 5px 6px; |
michael@0 | 33 | |
michael@0 | 34 | border-style: dotted; |
michael@0 | 35 | } |
michael@0 | 36 | |
michael@0 | 37 | div.big { |
michael@0 | 38 | font-size: 18px; |
michael@0 | 39 | width: 50px; |
michael@0 | 40 | } |
michael@0 | 41 | |
michael@0 | 42 | /* Classes for each of the various align-self values */ |
michael@0 | 43 | .flex-start { |
michael@0 | 44 | background: lime; |
michael@0 | 45 | align-self: flex-start; |
michael@0 | 46 | } |
michael@0 | 47 | .flex-end { |
michael@0 | 48 | background: orange; |
michael@0 | 49 | align-self: flex-end; |
michael@0 | 50 | } |
michael@0 | 51 | .center { |
michael@0 | 52 | background: lightblue; |
michael@0 | 53 | align-self: center; |
michael@0 | 54 | } |
michael@0 | 55 | .baseline { |
michael@0 | 56 | background: teal; |
michael@0 | 57 | align-self: baseline; |
michael@0 | 58 | } |
michael@0 | 59 | .stretch { |
michael@0 | 60 | background: pink; |
michael@0 | 61 | align-self: stretch; |
michael@0 | 62 | } |
michael@0 | 63 | </style> |
michael@0 | 64 | </head> |
michael@0 | 65 | <body> |
michael@0 | 66 | <!-- (NOTE: this test has the "stretch" divs and the "flex-end" divs |
michael@0 | 67 | swapped in the ordering, with respect to the other |
michael@0 | 68 | flexbox-align-self-* testcases. That's because "stretch" and |
michael@0 | 69 | "flex-end" overflow in opposite directions, and in RTL mode (with 2 |
michael@0 | 70 | flex containers side by side), they overflow *at* each other and |
michael@0 | 71 | overlap. If we swap them, they float away from each other and we can |
michael@0 | 72 | still see them.) --> |
michael@0 | 73 | <div class="flexbox"> |
michael@0 | 74 | <div class="flex-start">start</div> |
michael@0 | 75 | <div class="flex-start big">a b</div> |
michael@0 | 76 | <div class="stretch">stretch</div> |
michael@0 | 77 | <div class="stretch big">a b</div> |
michael@0 | 78 | <div class="center">center</div> |
michael@0 | 79 | <div class="center big">a b</div> |
michael@0 | 80 | </div> |
michael@0 | 81 | <div class="flexbox"> |
michael@0 | 82 | <div class="baseline">base</div> |
michael@0 | 83 | <div class="baseline big">abc</div> |
michael@0 | 84 | <div class="flex-end">end</div> |
michael@0 | 85 | <div class="flex-end big">a b</div> |
michael@0 | 86 | </div> |
michael@0 | 87 | </body> |
michael@0 | 88 | </html> |